LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   can't "su" to user account (https://www.linuxquestions.org/questions/linux-newbie-8/cant-su-to-user-account-4175520750/)

bino25 10-01-2014 10:16 AM

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?

CommanderRikker 10-01-2014 10:30 AM

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"]

bino25 10-01-2014 10:57 AM

The shell didn't change. I did just issue a change just to see if it helped, but still get the same error.

bino25 10-01-2014 01:04 PM

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.


All times are GMT -5. The time now is 12:29 AM.