||
http://blog.sciencenet.cn/u/xiaoxinghe (旧博客)
Ubuntu 13.04设置root用户登录界面
||| 推荐到群组
Ubuntu 12.04默认是不允许root登录的,在登录窗口只能看到普通用户和访客登录。以普通身份登陆Ubuntu后我们需要做一些修改,普通用户登录后,修改系统配置文件需要切换到超级用户模式,在终端窗口里面输入: sudo -s.然后输入普通用户登陆的密码,回车即可进入 root用户权限模式。
然后执行: vi /etc/lightdm/lightdm.conf.
增加 greeter-show-manual-login=true allow-guest=false . 修改完的整个配置文件是
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
allow-guest=false #不允许guest登录
然后我们启动root帐号:
sudo passwd root
根据提示输入roott帐号密码。
重启ubuntu,登录窗口会有“登录”选项,这时候我们就可以通过root登录了。
Root Login in LightDM on Ubuntu 13.04
Hello Linux Geeksters.
In this article I will show you how to enable root login in LightDM, on Ubuntu 13.04.
By default, the Ubuntu Operating Systems have the root user disable by default, for security reasons. Ubuntu tries to teach its users to use the root priviledges only when they need them.
To enable the root login on Ubuntu 13.04, do this:
Enable the root accout, by setting it a password:
$ sudo passwd root
Type the root password twice.
Configure LightDM to allow root login:
$ sudo su
# echo 'greeter-show-manual-login=true' >> /etc/lightdm/lightdm.conf
Reboot and you are done.
To disable the root account again, do:
$ sudo passwd -l root
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-10-21 11:22
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社