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#347; 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=si=965063m=b276cefc88be
Not spam:http://neelix.grote.net/canit/b.php?c=ni=965063m=b276cefc88be
Forget vote: http://neelix.grote.net/canit/b.php?c=fi=965063m=b276cefc88be
--
END-ANTISPAM-VOTING-LINKS




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


  


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


[CentOS] cannot rewrite shadow password file

2008-02-01 Thread Samuel Rochas

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



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


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


pgpbYaAhVCVa8.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 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
___
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

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
  



___
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

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:
  

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?

  


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


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 token manipulation error

 What is wrong?

root filesystem full or read only? disk physical errors?

-- 
Marcelo

¿No será acaso que ésta vida moderna está teniendo más de moderna que
de vida? (Mafalda)
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


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 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#347; 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=si=965044m=45aa7f2f5521
 Not spam:http://neelix.grote.net/canit/b.php?c=ni=965044m=45aa7f2f5521
 Forget vote: http://neelix.grote.net/canit/b.php?c=fi=965044m=45aa7f2f5521
 --
 END-ANTISPAM-VOTING-LINKS


--
Het.Grote.Net WebMail, powered by OpenWebMail
--

___
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 Michel,


What#347; 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

___
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

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

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


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#347; 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=si=965063m=b276cefc88be
 Not spam:http://neelix.grote.net/canit/b.php?c=ni=965063m=b276cefc88be
 Forget vote: http://neelix.grote.net/canit/b.php?c=fi=965063m=b276cefc88be
 --
 END-ANTISPAM-VOTING-LINKS
 

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