Ubuntu nautilus Home's path is /root,how can i change it to /home/username?

1k Views Asked by At

At first,the file icon was lost in my Ubuntu 20.04.Later i run the sudo root,but I still have some trouble in clicking the icon on the desktop to open the files. And now i run the sudo nautilus,i see the Home is /root,and when i open terminal in these file,the user is root,i don't know what happened.How can i change the Home to /home/username?and how can i reserve it to be username's terminal by default?

files images Terminal images(when open in files)

1

There are 1 best solutions below

5
Mime On

As you run nautilus with sudo, you are running it as the user root. This user has it's home directory at /root.

Try to run nautilus without root, i.e. as a normal user (by simply typing nautilus), and your "Home" will be at /home/username. Your "terminal user" will be your normal user account.

Please see the sudo man page