useradd: cannot rewrite shadow password file

Posted on 2010-04-07 22:44  木月天空  阅读(432)  评论(0)    收藏  举报

【OS】RHEL_AS4

 

【问题】root用户执行useradd命令报错,如下:

[root@localhost etc]# useradd efps4

useradd: cannot rewrite shadow password file

[root@localhost etc]# userdel efps4
userdel: error deleting shadow password entry

 

【解决】执行restorecon,如下:

[root@localhost etc]# restorecon /etc/shadow