Xiaoxing He分享 http://blog.sciencenet.cn/u/hexiaoxing

博文

Ubuntu 13.04设置root用户登录界面

已有 2777 次阅读 2016-1-16 22:42 |个人分类:Shell Script|系统分类:科研笔记

http://blog.sciencenet.cn/u/xiaoxinghe    (旧博客) 
Ubuntu 13.04设置root用户登录界面

已有 2836 次阅读 2013-10-4 23:16 |个人分类:Ubuntu|系统分类:科研笔记|关键词:用户登录    推荐到群组

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






https://blog.sciencenet.cn/blog-2985083-950855.html

上一篇:ubuntu下安装gamit 安装
下一篇:Linux:使用awk命令获取文本的某一行,某一列,awk删除文件第一
收藏 IP: 117.170.104.*| 热度|

0

发表评论 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-10-21 09:31

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部