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.
I'm facing a problem here, where i have my server installed with Mandrake 9.2.
I can't use other userID to login to both my server and from client to samba yet i can only use root to login.
when i try to login through the console mode, i believe the system can find the users but it prompted me a message that the /home/directory for all of the users except root are missing.
1st :
Create a directory in /home/ for each user and bind that directory to the user in /etc/passwd .
Remember to chown those home directories so that it belongs only to the user it is supposed to.
2nd :
Make sure your users has been given a password. You can assign them a password by issue this command :
passwd <username>
and then follow the instructions.
3rd :
Make sure you are in runlevel 3 or above. Check /etc/inittab and edit if you have to.
You should be able to login even though the home directory is missing or falsely configured.
Are you refused login and reprompted to login again or do you end up in some void?
ok, when i tried to login using other users beside root, it prompted me "no directory for /home/<user>" for a while only, then it'll go back directly to the login screen asking for the login again.
Just to make sure you are not skipping any necessary steps while creating your users, try using the Users wizard while running a GUI, either KDE or GNOME. It is found under Configure My Computer. Create a brand new user.
It may be humbling to not use the command line, but at least you know that if a user the wizard created didn't work something else is wrong. Check all the boxes like "Create a home directory" and such. Then try to logon to your machine with that user. If it works you might have faulty steps to create users.
Basically, isolate your possibilities and never exclude the human from the equation. However, if you are a super chief master commander of the command line, don't bother with the GUI. You must be good.
Another thing to look for is if your /home directory mounted properly. The root's home is in another location and doesn't need /home. See if you can cd to something under /home. If this directory doesn't mount you could have a problem.
ian
As the matter of fact... make sure you check for /home. I don't create directories for my users because they all use FTP. FTP users don't need home directories, but I also disabled them from logging on to the local machine. Make sure /home mounted properly.
in addition to tumana's suggestions:
How did you create the users home directories? If manually, did you change ownership of the directories to the respective users?
for tumana:
I have tried to do that umpteen times, but still gave me the same response "no directory /home/<user>!".
And because of u stated it out, i tried it once again, and it still gave me the same response.
as root, i can easily cd any of the /home/ subfolder and i can even create a new file in /home/
of any of the users. so, what do u think? does it meant it's mounted properly?
the problem is i can't use other users to login, not whether i like about GUI or command based. I'm using both of them to test login. but all gave me the same response. what do u think?
for darthtux:
I'm not an expert, i don't create the /home/ directory manually, it's created automatically while i create the user, if i'm using command based, i'll just be using "useradd (comes with all of the -bla bla bla, depends on the situation)" and if i'm using GUI, tumana has stated out the way / method.
just as an aside, since the computer I am using only has one user (me) is there any inherent danger apart from the blalantly obvious one to being permanently logged in as root?
Saves those pesky 'su' commands you have to type while modifying stuff
I have never experienced this problem myself before. Perhaps I run into a solution shortly. Often solutions to problems comes to you when not looking for it.
Ive never used Mandrake above version 7. This might be a Mandrake specific issue.
Anyway. Im out of ideas for now. Ill get back when I find something that might be useful.
Originally posted by Pseudonym88 just as an aside, since the computer I am using only has one user (me) is there any inherent danger apart from the blalantly obvious one to being permanently logged in as root?
Saves those pesky 'su' commands you have to type while modifying stuff
Someone could just get control of you computer and ddos whoever they want. So, other than calls from the FBI or someone ruining your system there's not much to worry about
Have you tried the adduser command instead of useradd?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.