1835261 Members
2493 Online
110078 Solutions
New Discussion

Re: su: no shell

 
SOLVED
Go to solution
Warren griggs
Frequent Advisor

su: no shell

Hi,

When i try to log into my machine i get an error message saying...

su: no shell
memory fault

I have booted to single user and tried to restore /home but this has not worked.
This happened after some data was moved about in the /home area.

Any ideas would be great (apart from a restore!)

Thanks in advance,

Colin.
5 REPLIES 5
Clemens van Everdingen
Honored Contributor

Re: su: no shell

Hi,

How about the permissions of /home or restored directories ?

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Clemens van Everdingen
Honored Contributor
Solution

Re: su: no shell

Hi,

Maybe even the permissions on /
should be:

drwxr-xr-x 31 root root

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Ravi_8
Honored Contributor

Re: su: no shell

Hi, colin

In /etc/passwd
for user root shell must be /sbin/sh
for users it can be /usr/sbin/ksh or /usr/sbin/sh
never give up
Cheryl Griffin
Honored Contributor

Re: su: no shell

Also check the permissions of /
# ll -d /

Correct them with:
# chmod 755 /

Login as the user, instead of su and see if there is a different error message. It may indicate something wrong with the user still. Compare it to the entry in /etc/passwd verifying the right user directory and shell.

Cheryl

"Downtime is a Crime."
Joseph A Benaiah_1
Regular Advisor

Re: su: no shell

Colin,

I have seen this on servers running HP-UX 10.20.

You can rectify this by installing PHKL_20356 which is the AdvJFS: fix direct read to return correct error patch.

Cheers,

Joseph.