ubuntu-kylin 怎么用ubuntu添加root用户户登录

Ubuntu Sudo - Root User Administrative Access
About Today
Electronics & Gadgets
Living Healthy
Health Tip of the Day
There was an error. Please try again.
Please select a newsletter.
Please enter a valid email address.
Did you mean ?
June 26, 2015.
The root user in GNU/Linux is the user which has administrative access to your system. Normal users do not have this access for security reasons. However, Ubuntu does not include the root user. Instead, administrative access is given to individual users, who may use the "sudo" application to perform administrative tasks. The first user account you created on your system during installation will, by default, have access to sudo.
You can restrict and enable sudo access to users with the Users and Groups application (see
for more information).When you run an application that requires root privileges, sudo will ask you to input your normal user password. This ensures that rogue applications cannot damage your system, and serves as a reminder that you are about to perform administrative actions which require you to be careful!
To use sudo when using the command line, simply type "sudo" before the command you wish to run. Sudo will then prompt you for your password.Sudo will remember your password for a set amount of time. This feature was designed to allow users to perform multiple administrative tasks without being asked for a password each time.Note:
Be careful when doing administrative tasks, you might damage your system!Some other tips on using sudo:To use a "root" terminal, type "sudo -i" at the command line.All of the default graphical configuration tools in Ubuntu already use sudo, so they will prompt you for your password if needed.For more information on the sudo program and the absence of a root user in Ubuntu, read the
on the Ubuntu wiki.
Ubuntu SudoUbuntu keylin 14.04 怎么使用root用户登录?
作者:佚名
字体:[ ] 来源:互联网 时间:07-28 11:15:57
Ubuntu keylin 14.04 怎么使用root用户登录?ubuntu默认是不能用root用户登录的,对于个人来说没有root用户权限非常麻烦。这里我将介绍Ubuntu keylin 14.04开启root用户登录;如果有需要的同学就一起学习下
Ubuntu(乌班图)是一个以桌面应用为主的Linux操作系统。Ubuntu基于Debian发行版和GNOME桌面环境,而从11.04版起,Ubuntu发行版放弃了Gnome桌面环境,改为Unity,与Debian的不同在于它每6个月会发布一个新版本。
ubuntu-Kylin中国定制版的Ubuntu桌面Linux系统,融入中国独有的特色。
ubuntu默认是不能用root用户登录的,对于个人来说没有root用户权限非常麻烦。这里我将介绍Ubuntu keylin 14.04开启root用户登录;如果有需要的同学就一起学习下!!!
1、为root用户设置密码
安装完成如需使用root身份登录,可打开终端输入以下命令:#设置root密码sudo passwd root,输入当前用户密码,然后输入两次设置的root密码;
2、#切换到root用户sudo -s。输入root密码,进入root终端
3、设置登录面板,使其实现root登录
想要在登录界面使用root身份登录,可编辑&/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf目录下的&/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf文件,如没有此文件,直接创建&/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf进入&/usr/share/lightdm/lightdm.conf.d/
cd &/usr/share/lightdm/lightdm.conf.d/
编辑50-ubuntu.conf文件内容最终为:[SeatDefaults]user-session=ubuntu
autologin-user=rootgreeter-session=unity-greetegreeter-show-manual-login=truallow-guest=false
修改完之后执行reboot命令重启Ubuntu生效;
启动后以root身份自动登录autologin-user=root#手工输入登陆系统的用户名和密码greeter-show-manual-login=true#禁用guest用户allow-guest=false
4、重启ubuntu
命令行输入reboot回车,等待重启;启动后默认已root用户登录了。
注意事项:学用户如果对于vim使用不熟悉可以使用gedit非常方便。
大家感兴趣的内容
12345678910
最近更新的内容ubuntu(1)
首先这样做确实不安全,但是因为学习嵌入式,感觉带来的方便更多,而且学习阶段也没有什么非常重要的资料。
网上找的的方法基本都不管用,看了很多帖子,最好的是实现root自动登录,但是一注销就没有了,只能重启,最后综合尝试,找到一种可行的办法。
在终端sudo gedit /etc/lightdm/lightdm.conf,这个文件本来是没有的,新建就好了。然后写入
[SeatDefaults]
greeter-session=unity-greeter
user-session=lightdm
greeter-hide-users=true
greeter-show-manual-login=true
autologin-guest=false
重点是user-session=lightdm,网上写的基本都是user-session=ubuntu,这样写进入系统就会报错。重启之后在默认帐号下面会有一个登录的选项,用root登录即可
参考知识库
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:3415次
排名:千里之外
(1)(2)(1)(3)ubuntu-kylin 怎么用root用户登录_百度知道
ubuntu-kylin 怎么用root用户登录
提问者采纳
单击:greeter-show-manual-login=ture保存,输入:root再输入root密码。登陆成功。输入;lightdm&#47,加入以下代码;lightdm:user@123 $ su[输入root密码]root@123 # gedit &#47,OK,重新启动。你会发现在登陆界面出来一个“其他用户”.conf打开了一个编辑器;etc&#47打开终端
来自团队:
其他类似问题
为您推荐:
其他1条回答
root账户不就是你装系统时创建的账户吗,直接登陆就好了。
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁}

我要回帖

更多关于 ubuntu添加root用户 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信