Ubuntu Nautilus Home的路径是 /root,我该如何将其更改为 /home /用户名?
首先,文件图标在我的ubuntu 20.04中丢失了。Later我运行sudo root
,但是我在单击桌面上的图标以打开文件时仍然有一些麻烦。现在,我运行sudo nautilus < /code>,我看到房屋是 /root,当我在这些文件中打开终端时,用户是root,我不知道发生了什么。我可以更改/home /home /用户名的所在地?默认情况下,如何保留它为用户名的终端?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您使用
使用
sudo
运行时,您正在以用户
root
的方式运行它。该用户在/root
上具有其主目录。尝试运行
nautilus
没有root,即作为普通用户(只需键入nautilus
)即代码>。您的“终端用户”将是您的普通用户帐户。
请参阅 sudo man page
As you run
nautilus
withsudo
, you are running it as the userroot
. This user has it's home directory at/root
.Try to run
nautilus
without root, i.e. as a normal user (by simply typingnautilus
), and your "Home" will be at/home/username
.Your "terminal user" will be your normal user account.
Please see the sudo man page