GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System  >  UNIX
Go To First  |  Previous Question  |  Next Question 
 UNIX  |  Question 50 of 61    Print  
UNIX Password change issue
Hi,

While trying to change the password of a normal user [ I logged in as root], I am getting the following message :-

[root@localhost root]# passwd someuser
Changing password for user someuser.
passwd: Authentication information cannot be recovered
[root@localhost root]#
-------------------
Think there's some issue in PAM configuration for password policy, please guide me for the same. Its urgent.

Thanks
geek36



  
Total Answers and Comments: 4 Last Update: July 13, 2009     Asked by: geek36 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: vishpri
 
run pwdck command at the command line.
this command will ensure the consistency with all the user authentication files like
1. /etc/security/passwd
2. /etc/passwd
3. /etc/security/login.cfg
4. /etc/security/user

Above answer was rated as good by the following members:
akbarjainsha
December 19, 2007 07:31:14   #1  
joybanerjee Member Since: November 2007   Contribution: 19    

RE: UNIX Password change issue
The password file is corroupted.Thats why this message is coming.
check the file /etc/passwd

 
Is this answer useful? Yes | No
December 25, 2007 13:19:58   #2  
Amit Shiknis Member Since: December 2007   Contribution: 9    

RE: UNIX Password change issue
I would suggest to check for two things:-

1) check for /etc/passwd | grep username

2) edit following file and remove only 'use_authtok' from this file.
# vi /etc/pam.d/common-password
password sufficient pam_ldap.so use_authtok
password required pam_unix.so nullok obscure min 4 max 8 md5

Let me know if this does not solve your problem.

Thanks
Amit Shiknis

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
April 16, 2008 07:21:09   #3  
vishpri Member Since: March 2008   Contribution: 16    

RE: UNIX Password change issue
run pwdck command at the command line.
this command will ensure the consistency with all the user authentication files like
1. /etc/security/passwd
2. /etc/passwd
3. /etc/security/login.cfg
4. /etc/security/user

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
July 11, 2009 02:20:12   #4  
dgangadharn09 Member Since: July 2009   Contribution: 1    

RE: UNIX Password change issue
You can use the following command to change the password.


Sudo chpasswd -c
username:password
press ctrl+d

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape