Ubuntu设置为root用户自动登录

来源:互联网 发布:mysql 默认数据库路径 编辑:程序博客网 时间:2024/04/20 00:19
 

ubuntu安全限制的太多,用起来太烦了。我们做系统开发的,经常要使用root权限。

1、为root账户设置一个密码

输入如下命令:

#sudo passwd root

根据提示设置密码

2、编辑/etc/gdm/custom.conf文件

[daemon]
AutomaticLoginEnable=true 这个修改为true
AutomaticLogin=root            这个修改为root
TimedLoginEnable=false
TimedLogin=root                  这个修改为root
TimedLoginDelay=10

3、重启机器测试