LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-15-2015, 12:59 AM   #1
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Rep: Reputation: 0
Question 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?
 
Old 07-15-2015, 06:35 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,762

Rep: Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745
Maybe check the log for selinux errors.

Also check the Dayton Hamfest for tubes. I'm down to my last 6AU6.
 
Old 07-15-2015, 08:04 AM   #3
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Original Poster
Rep: Reputation: 0
selinux is disabled.
 
Old 07-15-2015, 11:52 AM   #4
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Original Poster
Rep: Reputation: 0
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?
 
Old 07-15-2015, 12:03 PM   #5
Sefyir
Member
 
Registered: Mar 2015
Distribution: Linux Mint
Posts: 477

Rep: Reputation: 214Reputation: 214Reputation: 214
Quote:
Originally Posted by antriksh View Post
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
 
Old 07-15-2015, 12:24 PM   #6
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Original Poster
Rep: Reputation: 0
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
 
Old 07-15-2015, 12:36 PM   #7
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: CentOS 6 (pre-systemd)
Posts: 2,762

Rep: Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745Reputation: 745
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

Last edited by smallpond; 07-15-2015 at 12:38 PM.
 
Old 07-15-2015, 12:58 PM   #8
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Original Poster
Rep: Reputation: 0
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?
 
Old 07-27-2015, 06:14 AM   #9
antriksh
Member
 
Registered: Aug 2010
Location: In my world
Distribution: Oracle Linux 6
Posts: 83

Original Poster
Rep: Reputation: 0
Somehow it was determined that /usr/bin/passwd was corrupted and replacing it from other working server resolved the issue.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldap passwd: pam_krb5[549]: password change failed for @XXXXXX..LOCAL majoosh Linux - Server 2 04-23-2013 01:54 AM
I cant change my password with the passwd command errigour Linux - Software 3 12-15-2010 04:17 AM
passwd command says BAD PASSWORD planetmars Linux - Newbie 9 09-19-2009 04:42 AM
passwd command modifies /etc/password? pantuflo Linux - Newbie 1 08-06-2009 12:18 PM
user password failed after migrating /etc/shadow, /etc/passwd ect from SUSE9 to CenOS monkeyxu Linux - Newbie 1 05-21-2009 09:42 AM


All times are GMT -5. The time now is 10:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration