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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP.. "No Shell" appears after login

Status
Not open for further replies.

slymac

IS-IT--Management
Sep 20, 2001
36
CA
When anyone on my network tries to login they the following:

login: xxx
Password: xxxxxx
Please wait...checking for disk quotas
No shell
Connection closed by foreign host.


Any help at all would be very appreciated!
 
Edit your file /etc/passwd. You'll have a user described in every line. Last entry is its shell (must be /usr/bin/sh or something like that). Check if it's correct.
 
Thanks... I'm using HP-UX v10, the /etc/passwd file is there and everyone uses /usr/bin/sh
 
I looked for /etc/bin/sh and it isn't there. Could it be as simple as recovering it from a backup? I tried to get into sam and it wouldn't let me..

script interpreter "/usr/bin/sh" not found
sh: sam: not found.
 
Is it ok for me to copy /sbin/sh to /usr/bin/sh???
I just did it and it works... are there any differences between the two files??

Thanks
 
I don't know. That's something that depends on your system configuration. You could try... What kind of shell are you using? kshell,Bshell? you could search for it on your system (usually in /bin, /sbin or /usr/bin), and copy it to /usr/bin/sh.
If you were using this shell, then it'll be ok. If it's a different shell, it isn't a very bad problem, and you'll know when your users tell you that something is wrong ;-) As far as I know the main problem with it could be the scripts.
If users' profiles are running well, then my guess is that your using the correct sh.
 
Yes, one is a dynamically linked executible and the other is not (one in sbin should not be). I really do not know whay they are different, but they are.
Also, in the future if your having login problems, running pwck can sav a alot of time trying to figure out what is wrong in the /etc/passwd file.

crowe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top