1833871 Members
1851 Online
110063 Solutions
New Discussion

No shell

 
SOLVED
Go to solution
tigm7103105q1
Contributor

No shell

Hi I need you help!!
I've a user in hpux 11.i and when she/he try to access the message appears.
"no shell"
"Connection closed by foreign host"

I verified the permission in /etc/passwd /etc/group /usr/bin/sh /bin/sh, etc.

what append.
4 REPLIES 4
Rodney Hills
Honored Contributor
Solution

Re: No shell

Field 7 of /etc/passwd has shell user is assigned. Be sure file /etc/shells has that shell in its list.

HTH

-- Rod Hills
There be dragons...
Michael Tully
Honored Contributor

Re: No shell

Be sure that a correct shell is defined in the /etc/passwd file for that user. Field 7 of the users entry line has this information.
Anyone for a Mutiny ?
Patrick Wallek
Honored Contributor

Re: No shell

You can also try running the 'pwck' command to verify the integrity of the passwd file. If there is a problem pwck will output it to your terminal.

# pwck
Bill Hassell
Honored Contributor

Re: No shell

Check the permissions on your top level directories (ll -d /*). Someone may have tried to 'improve' security by changing 755 for most of the opsystem directories to something else. Is the user running a non-standard shell? Hint:

grep ^user_id /etc/passwd | cut -d: -f1,7


Bill Hassell, sysadmin