LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-18-2004, 03:26 AM   #1
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Rep: Reputation: 0
Other users can't login except root


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.

any suggestions?

thank's
 
Old 06-18-2004, 03:47 AM   #2
muflon
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Very own distro
Posts: 30

Rep: Reputation: 15
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.

4th :
Come back here and give us some feedback
 
Old 06-21-2004, 05:07 AM   #3
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
for example:

i have a user: abc

inside my /etc/passwd/ got: "abc:x:525:100::/home/abc:/bin/bash"

So, I don't think ur method will help much.

thank's anyway for ur help, do u have other methods?

or anyone here encountered this kind of problem before? thank's a lot
 
Old 06-22-2004, 02:02 AM   #4
muflon
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Very own distro
Posts: 30

Rep: Reputation: 15
Have you got a /home/abc directory?
 
Old 06-22-2004, 02:04 AM   #5
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
sure i have
 
Old 06-22-2004, 02:10 AM   #6
muflon
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Very own distro
Posts: 30

Rep: Reputation: 15
And you are in runlevel 3 or above?
 
Old 06-22-2004, 02:30 AM   #7
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
yeah, i am.
 
Old 06-22-2004, 02:34 AM   #8
muflon
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Very own distro
Posts: 30

Rep: Reputation: 15
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?
 
Old 06-22-2004, 02:36 AM   #9
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0
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.

get what i meant?
 
Old 06-22-2004, 02:49 AM   #10
tumana
Member
 
Registered: Mar 2004
Location: Belgium
Posts: 102

Rep: Reputation: 15
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.

Last edited by tumana; 06-22-2004 at 02:53 AM.
 
Old 06-22-2004, 02:56 AM   #11
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
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?
 
Old 06-22-2004, 03:41 AM   #12
octino
LQ Newbie
 
Registered: Jun 2004
Posts: 13

Original Poster
Rep: Reputation: 0


anyway, thank's for all of the suggestions.

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.

so, how?
 
Old 06-22-2004, 04:55 AM   #13
Pseudonym88
LQ Newbie
 
Registered: Jun 2004
Posts: 6

Rep: Reputation: 0
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
 
Old 06-22-2004, 05:00 AM   #14
muflon
Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Very own distro
Posts: 30

Rep: Reputation: 15
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.

Last edited by muflon; 06-22-2004 at 05:01 AM.
 
Old 06-22-2004, 07:33 PM   #15
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 46
Quote:
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Login to XSession with non root users freedo5 Red Hat 6 01-12-2007 03:34 AM
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 04:41 PM
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 09:32 AM
I can not login to any local users accounts, except root. jbirtwell Linux - General 7 08-25-2003 04:33 PM
Users other than root cannot login? cyberswami Linux - Newbie 8 07-07-2003 09:21 PM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration