Ubuntu Nautilus Home的路径是 /root,我该如何将其更改为 /home /用户名?

发布于 2025-02-07 22:29:43 字数 443 浏览 1 评论 0原文

首先,文件图标在我的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?

files images
Terminal images(when open in files)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凤舞天涯 2025-02-14 22:29:43

当您使用使用sudo运行时,您正在以用户root的方式运行它。该用户在/root上具有其主目录。

尝试运行nautilus没有root,即作为普通用户(只需键入nautilus)即代码>。
您的“终端用户”将是您的普通用户帐户。

请参阅 sudo man page

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文