I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.
Asked
Active
Viewed 480 times
1 Answers
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