LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 10-01-2014, 11:16 AM   #1
bino25
Member
 
Registered: Dec 2010
Posts: 45

Rep: Reputation: 11
can't "su" to user account


I have a user account on my RHEL 4 server (yes 4, it's not a typo). His password expired so I changed it for him. Since I did that, he is no longer able to ssh to the server.

When I am on the server as root, I tried to run "su - useraccount". It immediately errors out with "incorrect password".

I verified that his account was not locked, I tried resetting the password again, and can see the last password change on the account is today. The shadow and passwd entry for this user are fine, and I don't see anything in pam.d/su file that would prevent this.

Does anybody know why I can't su to a user account from root?
 
Old 10-01-2014, 11:30 AM   #2
CommanderRikker
LQ Newbie
 
Registered: Aug 2014
Posts: 7

Rep: Reputation: Disabled
Did the user's shell get changed? Check /etc/passwd and try changing it back with chsh command.
http://www.cyberciti.biz/faq/howto-c...d-login-shell/[COLOR="Silver"]

Last edited by CommanderRikker; 10-01-2014 at 11:31 AM. Reason: dup entry
 
Old 10-01-2014, 11:57 AM   #3
bino25
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 11
The shell didn't change. I did just issue a change just to see if it helped, but still get the same error.
 
Old 10-01-2014, 02:04 PM   #4
bino25
Member
 
Registered: Dec 2010
Posts: 45

Original Poster
Rep: Reputation: 11
I fixed it.

When I ran "faillog -u user", I saw the failure count was at 15. So I ran "faillog -r user" and that cleared the failure count. Once that was cleared, I was able to su to that user.
 
  


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
[SOLVED] Slackware unable to shutdown or reboot user account "command not found". Pinonoir Linux - Desktop 12 05-06-2014 08:50 PM
unable to login user account "orasp" on linux server premkumar.st Linux - Newbie 1 03-28-2012 01:28 PM
New user first login attempt gets "Account locked. Maximum attempts reached" p3t0rt Linux - Newbie 2 07-21-2009 05:40 PM
"To add a new user account, log in to the root account" how do i do this (im new) pierce77x Linux - Newbie 4 12-28-2008 03:44 PM
Root can log on, user account can't. "Error in service module" Charlie Spencer Linux - Newbie 3 09-13-2006 02:35 PM


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