Re: cannot rewrite shadow password file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx
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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


  

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux