System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

User cannot login ! login: no shell: Permission denied

SOLVED
Go to solution
Jean-Pierre Denis
Valued Contributor

User cannot login ! login: no shell: Permission denied

Hi,

users can't login on a tru64 v5.0a.

I put my username and password, it display my last login and then say No directory!.

At the end of the login process ( after motd) I get login: no shell: Permission denied and send me back to the login prompt.

Permission seems find so I don't know what happen. It also look like it's letting me in, since it's displaying motd and my last login information.

This problem apply to all the users on the system but root can login no problem !

Anybody have a solution or a hint ?

Thanks,
JP
Open your Mind and use Open Source software...
8 REPLIES
Ralf Puchner
Honored Contributor

Re: User cannot login ! login: no shell: Permission denied

seems your home directory is not mounted.
check mount points!
Help() { FirstReadManual(urgently); Go_to_it;; }
Matt Palmer_2
Respected Contributor

Re: User cannot login ! login: no shell: Permission denied

have you looked in /etc/passwd to check that the users have a home directory in their relevant entry, and also that /bin/sh or equivalent has not been locked with something like /bin/false.

Also, does /usr/users/ still exist??

HTH

regards

Matt
Jean-Pierre Denis
Valued Contributor

Re: User cannot login ! login: no shell: Permission denied

Hi,


/usr/users is mounted and accessible. All the users homes have the proper permission.

I have look at /etc/passwd and everything seems OK. The home directory and the shell is there.

I tried rebooting and I am still having the same problem when users loggin.

login: no shell: Permission denied.

I am still investigating... If anybody have more ideas they are welcome !

Thanks,
JP
Open your Mind and use Open Source software...
Matt Palmer_2
Respected Contributor

Re: User cannot login ! login: no shell: Permission denied

Is root using the same shell as the other users. try echo $SHELL logged in as root, then su - and echo $SHELL and see if its different. If not it might be that the default shell program has been removed or something.

regards

Matt
Michael Schulte zur Sur
Honored Contributor

Re: User cannot login ! login: no shell: Permission denied

Hi,

no directory in deed points to home dir not accessable to user, either non existent or wrong permissions as Matt suggests.

You may try the following:
login root
su - "user" or su "user"
please check also shell in /etc/passwd against /etc/shells.
Is your system on enhanced security?

greetings,

Michael
Ralf Puchner
Honored Contributor
Solution

Re: User cannot login ! login: no shell: Permission denied

use the fverify command to check proper permissions of all programs involved within the login process. Be sure the permission is correct! Is the home directory a single disk or a link to another directory?
Help() { FirstReadManual(urgently); Go_to_it;; }
Jim Giles
Advisor

Re: User cannot login ! login: no shell: Permission denied

Make sure that the shell assigned to your user accounts in the passwd file is listed in the /etc/shells file.
Jean-Pierre Denis
Valued Contributor

Re: User cannot login ! login: no shell: Permission denied

> Ralf Puchner
> use the fverify command to check proper permissions of all programs involved within the login process.

Thanks Ralf,

/usr/lbin/fverify was the command to use.

The problem was with permission in the bin directories.

Thanks to everyone for their help !

Cheers,
JP
Open your Mind and use Open Source software...