LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Password synchronization failed in passwd command (https://www.linuxquestions.org/questions/linux-newbie-8/password-synchronization-failed-in-passwd-command-4175548020/)

antriksh 07-15-2015 12:59 AM

Password synchronization failed in passwd command
 
Hi,

When i am trying to change the password for a user it is failing as below:

Code:

[root@el01cn01 sm250564]# passwd pp250207
Please type a new password:
Please re-enter the new password:
Synchronizing Password...
password synchronization failed.

Changing UNIX password...
OK
The password has been successfully set.

[root@el01cn01 sm250564]# id pp250207
uid=105(pp250207) gid=105(pp250207) groups=105(pp250207)

[root@el01cn01 sm250564]# uname -a;date
Linux el01cn01.daytonoh.ncr.com 2.6.32-400.34.1.el5uek #1 SMP Mon Dec 23 07:49:47 PST 2013 x86_64 x86_64 x86_64 GNU/Linux
Tue Jul 14 12:51:45 EDT 2015

Code:

/etc/nsswitch.conf:

passwd:    files
shadow:    files
group:      files

#hosts:    db files nisplus nis dns
hosts:      files dns
netgroup:  nisplus
publickey:  nisplus
automount:  files nisplus
aliases:    files nisplus
sudoers:  files ldap

What could be the reason for password sync failed error?

smallpond 07-15-2015 06:35 AM

Maybe check the log for selinux errors.

Also check the Dayton Hamfest for tubes. I'm down to my last 6AU6.

antriksh 07-15-2015 08:04 AM

selinux is disabled.

antriksh 07-15-2015 11:52 AM

Quote:

[root@el01cn01 sm250564]# ls -l /etc/passwd
-r--r--r-- 1 root root 7658 Jul 15 09:01 /etc/passwd

[root@el01cn01 sm250564]# ls -l /etc/shadow
-r-------- 1 root root 6028 Jul 15 09:01 /etc/shadow

[root@el01cn01 sm250564]# getenforce
Disabled
I think permission for passwd should be

-rw-r--r-- 1 root root 1515 May 3 17:52 /etc/passwd

This is the issue. Can some one confirm?

Sefyir 07-15-2015 12:03 PM

Quote:

Originally Posted by antriksh (Post 5391847)
I think permission for passwd should be

-rw-r--r-- 1 root root 1515 May 3 17:52 /etc/passwd

This is the issue. Can some one confirm?

My /etc/passwd

Code:

ls -l /etc/passwd
-rw-r--r-- 1 root root 2093 Jun  9 09:31 /etc/passwd


antriksh 07-15-2015 12:24 PM

Tried changing the permission but didn't work:

Quote:

[root@el01cn01 sm250564]# ls -l /etc/passwd *
-rw-r--r-- 1 root root 7658 Jul 15 13:07 /etc/passwd

-bash-3.2$ sudo passwd pp250207
Please type a new password:
Please re-enter the new password:
Synchronizing Password...
password synchronization failed.

Changing UNIX password...
OK
The password has been successfully set

-bash-3.2$ su - pp250207
Password:
su: incorrect password

smallpond 07-15-2015 12:36 PM

Also check:

Code:

ls -l /etc/shadow
---------- 1 root root 852 Jul 15  2015 /etc/shadow
ls -l /usr/bin/passwd
-rwsr-xr-x. 1 root root 30768 Feb 22  2012 /usr/bin/passwd


antriksh 07-15-2015 12:58 PM

Code:

[root@el01cn01 sm250564]# ls -l /etc/shadow
-r-------- 1 root root 6028 Jul 15 09:01 /etc/shadow

Thinking of getting strace for passwd. What else i can look into?

antriksh 07-27-2015 06:14 AM

Somehow it was determined that /usr/bin/passwd was corrupted and replacing it from other working server resolved the issue.


All times are GMT -5. The time now is 04:58 AM.