1836970 Members
2374 Online
110111 Solutions
New Discussion

Re: No shell

 
SOLVED
Go to solution

No shell

Hello all,
I need you help, please.

I work with HP-UX 10.20, now any users can connect, the message "No shell" appears in all displays.

The files exist:

-r-xr-xr-x 2 bin bin 159744 Sep 3 1998 /usr/bin/ksh

-r-xr-xr-x 2 bin bin 499712 Oct 20 1998 /usr/bin/sh

-r-xr-xr-x 1 bin bin 155648 Dec 9 1998 /usr/bin/csh

-r-xr-xr-x 2 bin bin 159744 Sep 3 1998 /bin/ksh

thanks.
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: No shell

What shell are they attempting to use and does it appear in /etc/shells?

Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: No shell

Hi:

Make sure that the '/usr' and '/usr/bin' directories allow read and execute permissions for everyone.

Regards!

...JRF...

Re: No shell

# cat /etc/shells

/usr/bin/ksh
/usr/bin/sh
/usr/bin/csh
/bin/ksh
Tomek Gryszkiewicz
Trusted Contributor

Re: No shell

Check if the user have a proper shell entry in /etc/passwd file (the last column).
Also check if the specified shell exists in /etc/shells

-Tomek

Re: No shell

the permisssion r-x for everyone exists:
# ll -d /usr

drwxr-xr-x 26 bin bin 2048 Sep 27 20:04 /usr

# ll -d /usr/sbin

dr-xr-xr-x 9 root sys 6144 Aug 26 09:12 /usr/sbin
Armin Feller
Honored Contributor
Solution

Re: No shell

Make sure that permissions are least the following:

-r-sr-xr-x 1 root bin /bin/login (note the 's' bit)
-r-xr-xr-x 2 bin bin /bin/rsh
-r-xr-xr-x 2 bin bin /bin/sh
-r--r--r-- 1 root sys /etc/passwd
drwxr-xr-x 22 root root /

And make sure that the user has a valid shell in /etc/passwd
Shannon Petry
Honored Contributor

Re: No shell

Shell errors can not only come from the shell itself, but /etc/passwd.

If the /etc/passwd does not have a proper shell, they will not be allowd to login. Normally I set the shell to /bin/$SHELL
where $SHELL is csh, ksh, or sh.

If root can not login or the system can not boot with the shell error, then check root's shell and ensure that /bin/sh is there and valid.

Regards,
Shannon
Microsoft. When do you want a virus today?
Jannik
Honored Contributor

Re: No shell

and that is for root:
/sbin/sh
and not
/bin/sh

/Jannik
jaton

Re: No shell

Thanks a lot for all, the problem was permission in /
750.