LinuxQuestions.org
Visit Jeremy's Blog.
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 12-02-2009, 03:14 PM   #1
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62
Blog Entries: 1

Rep: Reputation: 15
Unhappy cannot change password after ssh login


Running Fedora 10 server. ssh login over Internet. Verify users are complaining they canno change their account password after they login in. They need to be able to change their password as all users have the same initial password. Makes sense, right? Shell lets you go through the motions and then displays the following message:

passwd: Authentication service cannot retrieve authentication info

What does this message mean and how can I fix this? Thanks a bunch

-- Ron
 
Old 12-02-2009, 03:18 PM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
is there something wrong with EOL in /etc/shadow? is /etc/shadow containing correct data? did you edit it manually?
i had same trouble time ago: i just googled for it(the error message) and found out i used wrong EOL in /etc/shado after i edited it myself.
 
Old 12-02-2009, 06:43 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Could also mean its using (or thinks its using) NIS or LDAP and can't contact the auth server.
Have a look at /etc/nsswitch.conf to check.
 
Old 12-02-2009, 10:36 PM   #4
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Smile EOL in /etc/shadow

Not to sure what you mean by EOL in the shadow file. The /etc/passwd points to the shadow file as it should. My users just can't change their own passwords using passwd command. Can you be more specific regarding your remedie? Thanks, Ron
 
Old 12-02-2009, 10:39 PM   #5
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62

Original Poster
Blog Entries: 1

Rep: Reputation: 15
NIS or LDAP

Hi Chris,
What would I need to check in the nisswitch.conf file and what I need to change to fix the problem?
Thanks,
Ron
 
Old 12-02-2009, 11:48 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Paste the contents of nsswitch.conf here.
Also, EOL = End-Of-Line; he's saying the shadow file recs might be corrupted.
 
Old 12-04-2009, 12:29 PM   #7
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 62

Original Poster
Blog Entries: 1

Rep: Reputation: 15
My thanks to everyone that helped me on this. I finally go the answer and figured out what needed to be done. The answer was to make the following changes in /etc/nsswitch.conf

changeasswd: files
group: files
shadow: files

to: passwd: files nis
group: files nis
shadow: files nis

This got rid of the:

passwd: Authentication service cannot retrieve authentication info

message and allowed normal users to change their password.
 
  


Reply

Tags
passwd, ssh


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
ssh without change password ust Linux - Software 2 09-10-2008 11:15 PM
ssh login without password shishirkotkar Linux - Software 2 04-12-2008 04:27 PM
SSH login not working following password change CaptainReboot Linux - Software 14 03-20-2008 06:41 AM
SSH Login with no password mperkel Linux - Security 3 01-16-2007 08:42 AM
Can't change password through SSH Juan Quesada Linux - Security 1 08-16-2004 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:00 AM.

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
Open Source Consulting | Domain Registration