Groups
Groups
Sign in
Groups
Groups
谷歌贴吧联盟
Conversations
About
Send feedback
Help
在Ubuntu中用root帐号登录
1 view
Skip to first unread message
googlepost
unread,
Nov 23, 2007, 3:00:03 AM
11/23/07
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 谷歌贴吧联盟
一、
其实我个人认为这没有多大必要,因为当你需要 root 的权限时,使用 sudo 便可以了。如果你实在需要在 Ubuntu 中启用 root 帐
号的话,那么不妨执行下面的操作:jHYLinux联盟
jHYLinux联盟
1.重新设置 root 的密码:jHYLinux联盟
jHYLinux联盟
$sudo passwd root #按照提示输入两次新的密码,并加以确认。jHYLinux联盟
jHYLinux联盟
2.启用root用户登录:jHYLinux联盟
jHYLinux联盟
$sudo vi /etc/X11/gdm/gdm.conf #打开gnome的配置文件,在末行模式中输入:AllowRoot回车,找到
AllowRoot=false ,把false改为true,保存后退出。jHYLinux联盟
jHYLinux联盟
之后,重启系统时,就可以用 root 登录了。如果你想要禁用 root 帐号,则执行下列命令:jHYLinux联盟
jHYLinux联盟
$sudo passwd -l root
二、
Ubuntu 中的 root 帐号默认是被禁用了的。在这种情况之下,如果你想要使用 root 的权限来干些事情,就需要 sudo 指令。对某些
朋友来说,他们可能需要激活 Ubuntu 中的 root 帐号。jHYLinux联盟
jHYLinux联盟
在 Ubuntu 中激活 root 帐号的过程如下:jHYLinux联盟
jHYLinux联盟
1. 在终端执行 sudo passwd root 指令后,系统将会提示你设置一个新的 root 帐号密码。jHYLinux联盟
2. 点击 System -> Preferences -> Login Window 菜单,并切换到 Security 选项页,然后选中
其下的"Allow local system administrator login"选项。jHYLinux联盟
jHYLinux联盟
执行上述两步后,你便可以使用 root 帐号登录 Ubuntu 系统了。jHYLinux联盟
jHYLinux联盟
如果要再次禁用 root 帐号,那么可以执行 sudo passwd -l root。
Reply all
Reply to author
Forward
0 new messages