I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.
The root .bashrc file has a line that looks like this:
.bashrc
export PATH = /snap/bin:/usr/local/sbin/...
Get rid of the spaces around the =.
=
export PATH=/snap/bin:/usr/local/sbin/...