当前位置: > CentOS > CentOS故障 >

useradd: cannot open /etc/passwd,/etc/group,gshadow

时间:2015-08-09 09:07来源:linux.it.net.cn 作者:IT
useradd: cannot open /etc/passwd
useradd: cannot open /etc/group
useradd: cannot open /etc/gshadow




[root@toddy root]#lsattr /etc/passwd
----i-------- /etc/shadow
[root@toddy root]# chattr -i /etc/passwd
[root@toddy root]# useradd apache
[root@toddy root]# lsattr /etc/passwd


[root@toddy root]#lsattr /etc/group
----i-------- /etc/shadow
[root@toddy root]# chattr -i /etc/group
[root@toddy root]# useradd apache
[root@toddy root]# lsattr /etc/group


[root@toddy root]#lsattr /etc/gshadow
----i-------- /etc/shadow
[root@toddy root]# chattr -i /etc/gshadow
[root@toddy root]# useradd apache
[root@toddy root]# lsattr /etc/gshadow

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容