[CentOS] cannot rewrite shadow password file

Mon Feb 4 13:27:59 UTC 2008
Samuel Rochas <samuel.rochas at iesedu.com>

Dear Michel,

Great thank you, this is working now. Will this work after a reboot too?

Could you now explain me what was wrong with my SELinux setup?

Thank you
Regards
Samuel

Michel van Deventer escribió:
> On Fri, 2008-02-01 at 17:29 +0100, Samuel Rochas wrote:
>   
>> Dear Michel,
>>
>>     
>>> Whatś the output of :
>>> getenforce
>>>   
>>>       
>> Enforcing
>>
>>     
>>> ls -Z /etc/shadow 
>>>   
>>>       
>> -r--------  root     root     system_u:object_r:shadow_t       /etc/shadow
>>
>> After running those commands, I can run passwd without errors (passwd: 
>> all authentication tokens updated successfully), but the password won't 
>> be changed.
>>
>>     
>>> might be an SELinux issue
>>> If so, you can do a "restorecon /etc/shadow"
>>>   
>>>       
>> Did it, still can't update the password.
>>     
> To completely rule out SELinux..
> Do "setenforce 0" 
> try to change password
> Please make sure that ALL fields are accounted for in the shadow file
> and there are no line breaks!
> As a final solution you can try to remove the password of root
> completely (in runlevel 1), reboot, login as root and change the
> password again.
>
> 	Regards,
>
> 	Michel van Deventer
>
>   
>> Regards
>> Samuel
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
>> BEGIN-ANTISPAM-VOTING-LINKS
>> ------------------------------------------------------
>> Teach CanIt if this mail (ID 965063) is spam:
>> Spam:        http://neelix.grote.net/canit/b.php?c=s&i=965063&m=b276cefc88be
>> Not spam:    http://neelix.grote.net/canit/b.php?c=n&i=965063&m=b276cefc88be
>> Forget vote: http://neelix.grote.net/canit/b.php?c=f&i=965063&m=b276cefc88be
>> ------------------------------------------------------
>> END-ANTISPAM-VOTING-LINKS
>>
>>     
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20080204/278af309/attachment-0004.html>