> CentOS > CentOS故障 >

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

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)