Hi,
I run Centos 4.
I can't add users using the adduser command, I get this error: adduser: cannot rewrite shadow password file
I can't change the users passwords with passwd, I get this error: passwd: Authentication token manipulation error
What is wrong?
Thank you Samuel
On Feb 1, 2008 7:12 AM, Samuel Rochas samuel.rochas@iesedu.com wrote:
Hi,
I run Centos 4.
I can't add users using the adduser command, I get this error: adduser: cannot rewrite shadow password file
I can't change the users passwords with passwd, I get this error: passwd: Authentication token manipulation error
What is wrong?
root filesystem full or read only? disk physical errors?
Hi,
My answers: df gives me 41% use of the disk. I can create and copy files on the disk.
Both /etc/passwd and /etc/shadow looks fine to me.
Disk physical error? Might be, how do I check that?
Samuel
Marcelo Roccasalva escribió:
On Feb 1, 2008 7:12 AM, Samuel Rochas samuel.rochas@iesedu.com wrote:
Hi,
I run Centos 4.
I can't add users using the adduser command, I get this error: adduser: cannot rewrite shadow password file
I can't change the users passwords with passwd, I get this error: passwd: Authentication token manipulation error
What is wrong?
root filesystem full or read only? disk physical errors?
Hi Ralph,
-r-------- 1 root root 1653 ene 30 12:03 /etc/shadow
Samuel
Ralph Angenendt escribió:
Samuel Rochas wrote:
Hi,
My answers: df gives me 41% use of the disk. I can create and copy files on the disk.
Both /etc/passwd and /etc/shadow looks fine to me.
Disk physical error? Might be, how do I check that?
What's the output of lsattr /etc/shadow?
Cheers,
Ralph
Dear Ralph,
Sorry... ------------- /etc/shadow
Samuel
Ralph Angenendt escribió:
Samuel Rochas wrote:
Hi Ralph,
-r-------- 1 root root 1653 ene 30 12:03 /etc/shadow
What's the output of lsattr /etc/shadow?
^^^^^^ !!!!!!
Ralph
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
On Fri, 1 Feb 2008 16:52:21 +0100, Ralph Angenendt wrote
Samuel Rochas wrote:
Dear Ralph,
Sorry... ------------- /etc/shadow
Okay, so that's not it, either.
Whatś the output of : getenforce
ls -Z /etc/shadow
might be an SELinux issue If so, you can do a "restorecon /etc/shadow"
Regards,
Michel
Ralph
BEGIN-ANTISPAM-VOTING-LINKS
Teach CanIt if this mail (ID 965044) is spam: Spam: http://neelix.grote.net/canit/b.php?c=s&i=965044&m=45aa7f2f5521 Not spam: http://neelix.grote.net/canit/b.php?c=n&i=965044&m=45aa7f2f5521 Forget vote: http://neelix.grote.net/canit/b.php?c=f&i=965044&m=45aa7f2f5521
END-ANTISPAM-VOTING-LINKS
-- Het.Grote.Net WebMail, powered by OpenWebMail --
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.
Regards Samuel
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@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
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@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@centos.org http://lists.centos.org/mailman/listinfo/centos
Hi,
Before I had this problem, I've changed the root password twice, and something went wrong, since I was not able to login as root anymore :(
I've started the box with the GRUB option init=/bin/bash, mounted the disk rw and executed the passwd command successfully. I've restarted and could log into the box as root. But then, trying to issue the passwd command again did not work.
I am not sure if and how those actions can be related to my problem?!?
Regards Samuel
On Feb 1, 2008 10:12 AM, Samuel Rochas samuel.rochas@iesedu.com wrote:
Hi,
I run Centos 4.
I can't add users using the adduser command, I get this error: adduser: cannot rewrite shadow password file
I can't change the users passwords with passwd, I get this error: passwd: Authentication token manipulation error
What is wrong?
Can you read these two files ? Do they look corrupted ?
Thank you Samuel
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos