Logging in non-root users fails either with "no shell" or no directory
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Logging in non-root users fails either with "no shell" or no directory
Hello,
I tried to create a user on Solaris 10 but when I try to login the user with "su -" I get the error message "no directory". When I try to login with "su" I get the error message "no shell".
I tried the useradd several combinations e.g.
useradd -d /export/home/<username> -m -g <groupnname> <username>
All the tries i made didn't work. I also checked the permissions on /etc, /bin, /sbin and / and it seems ok so that the newly created user can access them.
I also tried with bash shell (ksh too) but same error messages. I also used the command above to double check, still the same errors.
Quote:
Originally Posted by jamescondron
What happens if you drop the -m flag, is it needed with the -d flag? Or are they competing?
If I don't use the -m flag, the directory is not created. So I created it manually with mkdir and made a chown user:group to give the new user the rights on the directory. Still the same errors.
I also checked with pwck if the /etc/passwd file is correct. I don't get an errors.
Well are you running nfs, samba or any other network filesystem? I imagine you'd know if you were, its just that putting this on /export/ is a bit of an odd place to put it.
Well are you running nfs, samba or any other network filesystem? I imagine you'd know if you were, its just that putting this on /export/ is a bit of an odd place to put it.
The problem is that I haven't installed the Solaris on the server and the person who installed is currently not available. How do I find out what filesystem is installed?
Could this be the problem that I can't access new created user?
The problem is that I haven't installed the Solaris on the server and the person who installed is currently not available. How do I find out what filesystem is installed?
Could this be the problem that I can't access new created user?
You may check file system support like this in Linux. Don't know same thing applies to Solaris
Code:
ls /sbin/mkfs.*
Hope if you post your thread here. You are likely to get more responses.
Well is this a fileserver? Are people using files on here on other machines? You could check for files such as /etc/exports to see if they're exporting directories on things like nfs.
You may check file system support like this in Linux. Don't know same thing applies to Solaris
Code:
ls /sbin/mkfs.*
Hope if you post your thread here. You are likely to get more responses.
I thought this is the right are because of Linux-Newbie. Is there a possibility to move the thread to the Solaris area?
Quote:
Originally Posted by jamescondron
Well is this a fileserver? Are people using files on here on other machines? You could check for files such as /etc/exports to see if they're exporting directories on things like nfs.
No it is not a fileserver, just a normal server where nobody needs to access files from different computers.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.