Operating System - HP-UX
1848183 Members
5805 Online
104022 Solutions
New Discussion

Re: no shell and bus error when su'ing

 
SOLVED
Go to solution
Houston Kemper
Occasional Advisor

no shell and bus error when su'ing

All,

I have a new system and have created new IDs through SAM, but when I try to login as any of these users, I get the following error:

su: no shell
Bus error

I've checked everything in the passwd file and am at a loss.

Any help would be appreciated.

Thanks
5 REPLIES 5
Sanjay_6
Honored Contributor

Re: no shell and bus error when su'ing

Hi Houston,

Seems like you have a corrupted /usr/sbin/login. Replace this file from a working system and try.

Hope this helps.

Regds
Steven Gillard_2
Honored Contributor

Re: no shell and bus error when su'ing

What shell have you specified for these users? There is a known problem with using /usr/bin/false documented in:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x5cb13fa720f3d5118ff40090279cd0f9,00.html

Regards,
Steve
John Palmer
Honored Contributor
Solution

Re: no shell and bus error when su'ing

Have you checked the permissions of /?

ll -d /

should be: drwxr-xr-x root root

Regards,
John
Alex Glennie
Honored Contributor

Re: no shell and bus error when su'ing

A Few Questions :

O/S , patch level , root affected -no i suspect , what is the shell they are trying to use etc ....


SOME POSSIBLE SOLUTIONS etc :
check:
1.ll -d /bin
lr-xr-xr-t 1 root sys 8 Apr 2 18:12
/bin ->/usr/bin
ll -d /usr/bin
dr-xr-xr-x 6 bin bin 10240 Apr 30 08:22
/usr/bin
ll -d /usrdr-xr-xr-x 24 bin bin 1024 May 10 09:58 /usr
ll -d / drwxr-xr-x 46 root root 144 May 12 11:39
/ll /bin/sh
-r-xr-xr-x 2 bin bin 217088 Jan 11 04:16 /bin/sh
ll /etc/passwd
-rw-r--r-- 1 root root 3517 May 11 10:23 /etc/passwd
ll /usr/bin/ksh
-r-xr-xr-x 2 bin bin 151552 Nov 7 1997 /usr/bin/ksh
ll /usr/bin/csh
-r-xr-xr-x 1 bin bin 155648 Aug 10 1998 /usr/bin/csh
ll /usr/lib/libc.1
-r-xr-xr-x 1 bin bin 1863680 Nov 18 19:55 /usr/lib/libc.1

2./etc/passwd:move user nobody behind root

3.The problem occurs when there are +:: entries in /etc/passwd
and /etc/group related to NIS (when NIS is not running). This
was causing the su command to have a bus error.
The workaround is to remove the entry: +::from /etc/passwd and /etc/group.

4.prolem with su revisions 82.15.1.1 and 82.15. It occurs when the login shell is not an executable or is not found at
all.

5 in case of using NIS:
a.You are getting the 'no shell' error because there are extra spaces
after the NIS entry in the /etc/passwd file: +::-2:-2:::

You can perform the following steps to identify the extra spaces:
1. vi /etc/passwd
2. A. Enter the 'set list' command at the colon prompt inside of vi.
Note: This command inserts a dollar ( $ ) sign at the end of
every line to indicate the end of a line.
B. Notice the position of the $ on the NIS line:
+::-2:-2::: $
The dollar sign should be immediately after the last ':'.
Remove the extra spaces at the end of the NIS entry to resolve your error

.b.[PHCO_15232/PACHRDME/English] or later is installed su(1) cumulative patch but this depend on your O/S the above is for 11.00.
Houston Kemper
Occasional Advisor

Re: no shell and bus error when su'ing

Great suggesstions from everyone. Many thanks.