• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1465
  • Last Modified:

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.
0
bmickey
Asked:
bmickey
  • 5
  • 5
1 Solution
 
woolmilkporcCommented:
Is the shell configured (= allowed) in /etc/shells?

Is root using the same shell as the problem users?

wmp
0
 
bmickeyAuthor Commented:
/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.
0
 
bmickeyAuthor Commented:
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
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
woolmilkporcCommented:
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
0
 
bmickeyAuthor Commented:
They do exist.  They are executable, permissions are -r-xr-xr-x

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

They should be 755. Did you change something in that regard?
0
 
woolmilkporcCommented:
ls -ld /
0
 
bmickeyAuthor Commented:
They are 755, drwxr-xr-x
0
 
woolmilkporcCommented:
Well, that's going to become a hard one, it seems.

Are the shells spelled correctly in /etc/passwd? No quotation marks around?

Permissions of /usr and /usr/bin?  Also 755?

HP-UX doesn't have /etc/shells by default, but will use it if it's there.
How about creating this file, adding the shells (full path, one per line)?

What happens when you change a user's shell to /sbin/sh ?

wmp
0
 
bmickeyAuthor Commented:
The /usr permissions had been changed inadvertently.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now