-2

Screenshot of my terminal

I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.

Drazer
  • 67
  • 6
  • Root's `.bashrc` has an `export` line with spaces around the `=`. It should be `export PATH=/...` with no spaces around `=`. – Barmar Jun 10 '20 at 18:20

1 Answers1

2

The root .bashrc file has a line that looks like this:

export PATH = /snap/bin:/usr/local/sbin/...

Get rid of the spaces around the =.

export PATH=/snap/bin:/usr/local/sbin/...
Barmar
  • 741,623
  • 53
  • 500
  • 612
  • Thank You very much. I checked only my profile `.bashrc`. I didn't knew about root `.bashrc`. This solved my problem – Drazer Jun 10 '20 at 19:03
  • When you use `sudo su`, you're running a shell as root, so it runs root's .bashrc. – Barmar Jun 10 '20 at 19:10