"Interactive Shell not available." for user account
I have a local user account which is unusable. via ssh or su
All I get is: Interactive Shell not available. and then disconnect. I used the pwck but it found no issues. This is Centos 6. |
Quote:
look at the shell, and see if that is one of the installed and authorized shells. This check does not find invisible characters. Also, or instead, you can run Code:
cat -vte /etc/passwd|grep ^USER the logon name of the user. The shell should be between the last ":" on the line and the "$" that marks the end of the line. Examine the shell for correctness, and missing or additional characters. This test will find invisible characters. Please come back here and let us know what you find out. |
What shell does the user have set?
Try this as root: Code:
getent passwd <USER> Is it: Code:
/bin/nologin We need more information! |
Code:
getent passwd USER The last field is the login shell. Can it be started? Is it listed as a valid login shell in /etc/shells? |
I've seen this when I fat-fingered a name when trying to set up a service user. :banghead: I don't believe that the user-management tools actually check to see if the specified shell-program file exists.
Anyway – in order for a user to log on, Linux must create a shell-process for him ... and it finds that it can't do so. |
All times are GMT -5. The time now is 10:23 AM. |