Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

su: no shell 1

Status
Not open for further replies.

tomecki24

Programmer
Jun 13, 2001
52
DE
Hello,

I'm working on Solaris 7. I cannot login as normal user remotely, because after entering user and password connection is lost. I can connect as root. When I try to switch to another user, for example:
su - john
it says: "su: no shell".
When I try to use login command from root account it says: "no utmpx entry".
How can I fix it?
Please, help

Tomasz
 
One possibility for the no shell problem might be that the user's entry in /etc/passwd has a non-existant or corrupted entry for the user shell. Check this out and amend it if need be. Hope this helps.
 
Hello,

Thanks but it's not it.
I couldn't log as any user, not only one, specified.
Root was the oly one user, that could login.

But strange thing happened. After a while (maybe 3-4 hours) I can normally login as john, as well as any other user.
I work a litle with root account, but didn't change any file. And now it's allright.

what happens here?
Thanks
Tomasz
 
Curiouser and curiouser. I don't suppose you have any process running that creates an /etc/nologin entry for it's duration, then deletes it once finished? Perhaps someone with a broader knowledge of utmpx might be able to help further. Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top