LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-22-2011, 10:54 AM   #1
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Rep: Reputation: 3
Local User unable to change password


I'm new to SUSE Linux 10 and I am having a problem with a local user account. Here is the scenario,

Logged in successfully to a putty session as the "user" and try to change the password :

passwd "user"
(current) UNIX password:
passwd: Authentication failure


I am unable to change the password as the user but i am able to log into the server with the same user. Thank you for any help.

D
 
Old 03-22-2011, 11:22 AM   #2
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Try just passwd without the user.

On red hat only root can specify a username with the passwd command. normal users should just type passwd to change their passwords.

example:
 
1 members found this post helpful.
Old 03-22-2011, 11:29 AM   #3
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
I'm trying this now, but I am receiving the same error.
 
Old 03-22-2011, 11:32 AM   #4
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
I deleted the local account and recreated it. I set the password and then log into the server through a putty session without a problem, but when i get to the point where i enter the current UNIX password i get the same authentication failure?
 
Old 03-22-2011, 11:37 AM   #5
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
And your sure you are typing the correct password (case sensitive).

"passwd: Authentication failure" usually means you are typing bad credentials.
 
Old 03-22-2011, 11:42 AM   #6
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Also are you using a simple password like "password" or "changeme" ? I never used SUSE so I do not know if it is the same but red hat would reject that, although the error message would be "Password too simple".
 
Old 03-22-2011, 11:55 AM   #7
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
I logged out and back in ok, so im pretty sure im using the correct password. Yeah it isn't a simple password, 15 character, alpha numeric...P@ssworD#!23456

Max # of days for same password = 365
Days for warning = 7
Days after password expires with usable login = -1
minium # of days for the same password = 1

Not sure what else to check?
 
Old 03-22-2011, 12:45 PM   #8
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
You probably can't change the password while remote logged in, because that changes the credentials you used for remote log in.
 
Old 03-22-2011, 01:02 PM   #9
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
AwesomeMachine...I was just reading your post on the DD command. Very nice! I believe you are correct. Nothing has worked so far when trying to change the password through a putty session.
 
Old 03-22-2011, 01:13 PM   #10
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
They were able to change their password through putty logged in as the user they are changing the password on. Very odd. The only thing i can think of is when the local account password expired and the user tried to change it they used the same password which could have caused a problem in PAM?? I'm talking out of my A$$ at this point.
 
Old 03-22-2011, 01:55 PM   #11
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Quote:
Originally Posted by swampf0x View Post
They were able to change their password through putty logged in as the user they are changing the password on. Very odd.

Whats odd about that? It sounds like the way you would expect it to work.
 
Old 03-22-2011, 02:35 PM   #12
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by savona View Post
Whats odd about that? It sounds like the way you would expect it to work.
What I "expect" is the ability for the user to change their own passwords. What is "odd" is now they are unable too.
 
Old 03-22-2011, 02:40 PM   #13
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
If you delete the account and re-create the account with the same name does the /etc/passwd and /etc/shadow file keep the old user account and password?
 
Old 03-22-2011, 03:36 PM   #14
savona
Member
 
Registered: Mar 2011
Location: Bellmawr, NJ
Distribution: Red Hat / Fedora
Posts: 215

Rep: Reputation: 66
Quote:
Originally Posted by swampf0x View Post
What I "expect" is the ability for the user to change their own passwords. What is "odd" is now they are unable too.
Sorry, but I think you mis-spoke/typed and thats what caused the confusion.

You originally said "They were able to change their password through putty logged in as the user they are changing the password on. Very odd."

I assume you meant they were unable...
 
Old 03-22-2011, 03:53 PM   #15
swampf0x
Member
 
Registered: Feb 2011
Location: South Carolina
Distribution: SLES10 SP4
Posts: 30

Original Poster
Rep: Reputation: 3
Thanks for the reply savona.

I typed that correctly, the user was able to change their password through a putty session. Now they cannot. I think the password expired and when they went to change it they used the same password. They have to use the same password its for a account they use to scan the server. I increased the max # of days for the same password and am having them change their password from my console.
 
  


Reply



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
NIS vs Local account password change thllgo Linux - Server 2 07-17-2008 04:47 PM
Locking out a user when password expires, but allowing them to change their password kaplan71 Linux - Security 5 06-27-2008 07:12 PM
how local user able to change password? dickysolo Linux - Security 3 10-29-2007 03:39 AM
change password local user vsftp ?? cosmonate Linux - Security 8 02-19-2003 07:56 AM

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

All times are GMT -5. The time now is 08:47 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