linux跳过用户名密码登陆界面方法
2015-08-07 13:30
716 查看
使用的是CentOS 6.5环境
先修改 /etc/init/tty.conf文件
exec /sbin/mingetty --autologin root $TTY
红色为增加内容
在修改/etc/gdm/custom.conf 文件
修改[daemon]选项
AutomaticLoginEnable=true
AutomaticLogin=root
TimedLoginEnable=true
修改[security]
AllowRoot=true
下面是修改之后,重启后的文件
这种方法不是每次都成功,有的root用户不行,换成其他用户就可以。只是做一下参考
先修改 /etc/init/tty.conf文件
exec /sbin/mingetty --autologin root $TTY
红色为增加内容
在修改/etc/gdm/custom.conf 文件
修改[daemon]选项
AutomaticLoginEnable=true
AutomaticLogin=root
TimedLoginEnable=true
修改[security]
AllowRoot=true
下面是修改之后,重启后的文件
[root@localhost etc]# vi /etc/gdm/custom.conf # GDM configuration storage [daemon] AutomaticLoginEnable=true AutomaticLogin=root TimedLoginEnable=true TimedLogin=root TimedLoginDelay=7 [security] AllowRoot=true [xdmcp] [greeter] [chooser] [debug]
这种方法不是每次都成功,有的root用户不行,换成其他用户就可以。只是做一下参考
相关文章推荐
- linux意外关机,如何修复
- linux下迁移mysql数据库存放目录
- linux下的vi 常用编辑命令
- Linux中mysql表的导出导入
- vmstat命令是最常见的Linux/Unix监控工具
- win7下装ubuntu14.10双系统中遇到的一系列问题总结
- centos 安装LAMP环境后装phpmyadmin
- qwt安装调试linux
- linux多进程和多线程的优缺点
- centOS配置mysql+appache+vsftp=php服务器
- Linux系统用户账号管理
- Linux文件夹/文件基本操作
- Ubuntu和centos安装vsftpd步骤教程-ftp
- Linux 数据库学习的准备工作---win通过ssh访问ubuntu
- Linux动态库的查找路径
- linux sdio card睡眠治疗 sdio card removed解决方案
- 浅析linux中snapshots, blockcommit,blockpull
- How to Enable EPEL Repository for CentOS 7.x/6.x/5.x
- modprobe和insmod的区别
- CentOS下更换yum源