ubuntu 中的 root 帐户
我已经安装了ubuntu 10.04。
已以我的名义创建了一个用户帐户。
但没有人问过 root 帐户的问题。
所以我想知道如何用root帐户登录。
请提供一些建议。
I had installed ubuntu 10.04.
A user account has been created under my name.
But no question has been asked of root account.
So, I was wondering how to login under root account.
Kindly provide some suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Ubuntu 之所以安全,正是因为这个特性。使用
root
帐户非常危险。如果您使用该帐户创建文件,则只有root
可以删除它。垃圾桶已满,但无法清空。这很痛苦,所以不要这样做。您可能需要以更高的权限执行某些操作。命令
sudo
可以让您做到这一点。它允许您以
root
身份运行单个命令,而无需成为 root。使用起来非常简单:系统会提示您输入密码(您的密码,而不是 root 的密码)。
Ubuntu is secure because of that very feature. The
root
account is very dangerous to use. If you make a file with that account, onlyroot
can delete it. The trash can fills up, but you can't empty it. It's a pain, so don't do it.You are probably needing to do something with elevated privileges. The command
sudo
lets you do just that.It lets you run individual commands as
root
, without being root. It's quite simple to use:And you will be prompted for a password (your password, not root's).
通常,人们对
sudo(8)
访问系统管理员命令感到满意。我个人喜欢sudo -s
。但如果您必须启用直接登录 root,Ubuntu 已提供了您可以遵循的说明。
Typically, people are happy with
sudo(8)
access to system administrator commands. I personally lovesudo -s
.But if you must enable direct logins to root, Ubuntu has provided instructions you can follow.
我不喜欢 ubuntu 的一件事就是这个东西。
为了“创建” root 帐户,您可以执行
以下操作然后您将输入密码,之后您可以随时使用
In order to Login as root,当然, sudo 仍然存在:)
One of the things i do not like from ubuntu is this thing.
In order to "create" a root account, you can do
Then you will type a password, after that you can always use
In order to login as root, and of course, sudo is still there anyway :)
您不需要以
root
身份登录,而是使用
sudo
来执行这些任务。它会要求您输入密码。
You don't need to login as
root
Instead you use
sudo
to perform those tasks.It will ask for your password.
在 ubuntu 中,您可以使用您的用户帐户。用途:
在终端中以提升的权限执行任务。
如果您特别想以 root 身份登录,请使用:
In ubuntu, you use your user account instead. Use:
In a terminal to perform a task with elevated rights.
If you specifically want to log on as root, use: