Link to home
Start Free TrialLog in
Avatar of bmickey
bmickey

asked on

su no shell hp-ux 11.23

I am havining an issue on my HP-UX 11.23 unix system.  I can log in as root but I can't telnet in as any other user.  I also can't use the su - <insert user id here> command.

I even tried to create a new user using SAM and that user couldn't login either with out a "No Shell" error.

I checked the /etc/passwds and it appears the last part of each line has the correct path to the shell.

Ideas? Is there a process that didn't start up or something I'm missing?  Need help troubleshooting.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Is the shell configured (= allowed) in /etc/shells?

Is root using the same shell as the problem users?

wmp
Avatar of bmickey
bmickey

ASKER

/etc/shells is for Solaris unix only, this is HP-UX.  (I Think). I do not have a /etc/shells file on either of my systems, the one that works and the one that does not.
Avatar of bmickey

ASKER

when i look at the passwd file it says the shell is /sbin/sh for root.  for most of the other users its /usr/bin/sh or /usr/bin/ksh
Do  /usr/bin/sh  and  /usr/bin/ksh  exist?

What do you get with

ls -l /usr/bin/*sh

Are the shells (if present) executable for everyone?

wmp
Avatar of bmickey

ASKER

They do exist.  They are executable, permissions are -r-xr-xr-x

I compared them to the working system and its the same thing..
Found a hint on permissions of the "/" filesystem.

They should be 755. Did you change something in that regard?
ls -ld /
Avatar of bmickey

ASKER

They are 755, drwxr-xr-x
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bmickey

ASKER

The /usr permissions had been changed inadvertently.