LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-05-2003, 10:32 PM   #1
cyberswami
Member
 
Registered: Jan 2003
Location: TVM,Kerala,INDIA
Distribution: Redhat 8.0
Posts: 47

Rep: Reputation: 15
Users other than root cannot login?


Hi, i have a RH 7.3 box, recently i found that users other than the root cannot login into their shell accounts ,
what could be wrong ,
when they try to login, a message prompts that the home directory could not be found , therefore it is logging in with home directory ="/" and then a prompt with bash$ comes and i cannot run any command on the home directories since it states that permission denied,

one thing that i noticed was that when the message comes stating that home directory could not be found, there is a '!' mark at the end of the home-directory name,
like /home/user! ,

help me out
 
Old 07-05-2003, 11:15 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
First thing would be to have a look
at /etc/passwd

Cheers,
Tink
 
Old 07-06-2003, 04:20 AM   #3
cyberswami
Member
 
Registered: Jan 2003
Location: TVM,Kerala,INDIA
Distribution: Redhat 8.0
Posts: 47

Original Poster
Rep: Reputation: 15
i looked at the /etc/passwd file, it made no sense to me
i'm a newbie
 
Old 07-06-2003, 04:29 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Go ahead and post it up if you'd like.

However, the line/entries you are probably going to want to look at will be the users entries, and the corresponding HOME that they have, such as /home/cyberswami for user cyberswami
And the shells, these should be:
/bin/bash
or other appropriate shells for your situation (most likely bash for now).

Cool
 
Old 07-06-2003, 05:31 AM   #5
cyberswami
Member
 
Registered: Jan 2003
Location: TVM,Kerala,INDIA
Distribution: Redhat 8.0
Posts: 47

Original Poster
Rep: Reputation: 15
The /etc/passwd file shows no problem but i still get the following message :

Last login: Mon Jun 30 15:22:19 on tty4
No directory /home/cyberswami!
Logging in with home = "/".
bash: /home/student/.bash_profile: Permission denied
bash-2.05$
 
Old 07-06-2003, 05:53 AM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
It would really help us if you posted up your /etc/passwd file. However, I understand if you are a little paranoid, and wish to not do this.

/home/cyberswami
And
/home/student
Are not the same unless they are symlinked to each other (not likely). So either there is an issue with your /etc/passwd syntax (likely) or your permissions are really out of whack.

I'd go about this like so:

Remove the corresponding line ONLY from /etc/passwd, then, follow it up with an adduser -g blah -s /bin/blah (blah is the only word that comes to mind ) and so on to create the new user, this may help with the syntax issue. Also, check permissions on /home/username (assuming that's what you set from your useradd/adduser script) to make sure that your user has ther permissions to access it.

To check permissions:
ls -l /home
And look for the directory that is assigned to the user as their home, likely the users name: /home/user

HTH

Cool
 
Old 07-06-2003, 05:59 AM   #7
cyberswami
Member
 
Registered: Jan 2003
Location: TVM,Kerala,INDIA
Distribution: Redhat 8.0
Posts: 47

Original Poster
Rep: Reputation: 15
actually there's no problem with symlinks, i just got a bit paranoid,the home directory has got a 777 permission i just tried that out to check whether it will work or not
i still get the same problem
 
Old 07-06-2003, 06:56 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
If the home directory has 777, then ANYONE on your system should be able to access it, yet you are getting errors of "Permission Denied" on it. I'm leaning towards a syntax error in /etc/passwd, or, hopefully not (since I don't understand it all that well) an error in PAM or Shadow... Try removing the user and recreating them with useradd and see if that fixes the problems.

Cool
 
Old 07-07-2003, 09:21 PM   #9
x2000koh
Member
 
Registered: Jul 2002
Location: singapore
Distribution: red had 7.2
Posts: 109

Rep: Reputation: 15
No directory /home!

Hi !
I have setup an NIS server and client. I have created user 'jane' at nis server.

At nis client, I login as jane and enter password. The following message appear.

node_B login:jane
password:
Last login:sat Nov 18 22:16:42 on tty1
No directory /home/jane!
Logging in with home="/"
bash-2.05 $


My /etc/passwd and /etc/group is as follow:

/etc/passwd
----------------
joe:x:501:502:joe tan:/home/joe:/bin/bash

/etc/group
-------------
student:x:501:jane, tom, joe

Appreciate if anyone can help. Why can I access the /home directory.

Regards,
x2000koh

Last edited by x2000koh; 07-08-2003 at 12:39 AM.
 
  


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
Other users can't login except root octino Linux - Newbie 19 11-07-2004 11:52 PM
I can not login to any local users accounts, except root. jbirtwell Linux - General 7 08-25-2003 04:33 PM


All times are GMT -5. The time now is 04:24 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