操作环境:
最小化安装的32位CentOS 6.4
1.备份
#cp /etc/sysconfig/init /etc/sysconfig/init.backup
2.添加密码保护命令
#sed -i ‘s/SINGLE=\/sbin\/sushell/SINGLE=\/sbin\/sulogin/‘ /etc/sysconfig/init
RHEL&CentOS 6.x 单用户模式下增添密码保护
时间: 2024-11-04 16:37:06
操作环境:
最小化安装的32位CentOS 6.4
1.备份
#cp /etc/sysconfig/init /etc/sysconfig/init.backup
2.添加密码保护命令
#sed -i ‘s/SINGLE=\/sbin\/sushell/SINGLE=\/sbin\/sulogin/‘ /etc/sysconfig/init
RHEL&CentOS 6.x 单用户模式下增添密码保护