Operating System - HP-UX
1847451 Members
2933 Online
110265 Solutions
New Discussion

Re: No Shell message when login

 
blessing
Occasional Contributor

No Shell message when login

hie guys , i have a HP-UX 10-20 on a trusted system.
my problem is when a user trys to login he/sh gets the message "NO Shell " , then disconnects.
If i change the password for the user , its says can`t run password program.


Can you please help me.

thanks in advance.
zed zeloo
9 REPLIES 9
James R. Ferguson
Acclaimed Contributor

Re: No Shell message when login

Hi:

A "no shell" at login means that no shell interpreter is specified in /etc/passwd for the user in question.

...JRF...
Paula J Frazer-Campbell
Honored Contributor

Re: No Shell message when login

Hi
Is this happening for all users?

I the "can`t run password program" error for you on passwowd change or the user?

If you can spell SysAdmin then you is one - anon
blessing
Occasional Contributor

Re: No Shell message when login

hie , the passwd file looks okay , the shell part is there.
This is happaning to all user execpt root , and even new users i add.

This is part of my passwd file
cdwadm:*:112:100:adduser,980304.10.55:/appl/regional/cdw:/bin/ksh
informix:*:100:100:,,,:/opt/informix:/usr/bin/ksh
sisusr:*:1003:100:adduser,980507.10.22:/appl/regional/sis/sis:/usr/bin/sh
ljongwe:*:1005:20:adduser,981023.14.39:/backups/ljongwe:/usr/bin/sh

all these users and the rest can`t login.
please suggest what i can do.
zed zeloo
David Watts
Advisor

Re: No Shell message when login

do you have any additional security software running on the box ? that may link in an improved passwd binary? Have you tried running /usr/sbin/pwck on the password file ?

If you have a shell interpreter defined, is it one of the default shells or have you got an /etc/shells files that defines allowable shells ? Check man page for getusershell for the default shells.
Alan Riggs
Honored Contributor

Re: No Shell message when login

hmmm -- okay, eliminate the obbvious first:

Is /usr mounted?
If you change a user's shell to /sbin/sh can they login successfully?
Do the /usr/bin/[ksh|csh|sh|] files exist with proper permissions (555).
blessing
Occasional Contributor

Re: No Shell message when login

/usr is mounted okay , if i change the shell for a user to /sbin/sh it still says no shell.


Whats the hell is it.
zed zeloo
Paula J Frazer-Campbell
Honored Contributor

Re: No Shell message when login

Hi

I am going to ask the obvious,

1. Were any changes made to hardware/software immediately before this problem occurred?
2. Have you had a look at the system log files?
3. As root can log in can you create another root level user and can that user log in?
4. Are all the other users running to the same .profile?
5. Who else has the sort of access to the system that might have made a system level change.
6. Is it a permissions problem?

Just a few ideas that may or not help - apologies for stating the obvious but occasionally we all get the "Wood from the trees" syndrome.

Paula
If you can spell SysAdmin then you is one - anon
blessing
Occasional Contributor

Re: No Shell message when login

hie guys , i unconverted my system to non -trusted ,
tried to login as root and it gave me this error
Your password has expired.
Choose a new onecrt0: ERROR couldn't open /usr/lib/dld.sl errno:000000013
what is this , i tried to login with another users login and it gave me
/usr/bin/login no found.

What to do.
zed zeloo
blessing
Occasional Contributor

Re: No Shell message when login

hie guys , just to let you no i have fixed that problem it was the permissions on /
somehow , they where changed to 644 from 755 .
Thanks all for your help.
zed zeloo