Re: [CentOS] cannot rewrite shadow password file

2008-02-04 Thread Samuel Rochas
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

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Michel van Deventer
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 wi

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas
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

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas
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 passwor

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Michel van Deventer
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/sh

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Ralph Angenendt
Samuel Rochas wrote: > Dear Ralph, > > Sorry... > - /etc/shadow Okay, so that's not it, either. Ralph pgpR4leUBQ8XF.pgp Description: PGP signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas
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? ^^ !! R

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Ralph Angenendt
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 pgpeGAzINvSbK.pgp Description: PGP signature ___

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas
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 b

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Ralph Angenendt
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 pgpbYaA

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Marcelo Roccasalva
On Feb 1, 2008 7:12 AM, Samuel Rochas <[EMAIL PROTECTED]> 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

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas
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 <[EMAIL PROTECTED]> wrote

Re: [CentOS] cannot rewrite shadow password file

2008-02-01 Thread Alain Spineux
On Feb 1, 2008 10:12 AM, Samuel Rochas <[EMAIL PROTECTED]> 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: Authenticatio