Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't log in as a user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
John2845
n00b
n00b


Joined: 02 Jun 2003
Posts: 37

PostPosted: Sat Oct 30, 2004 4:00 am    Post subject: Can't log in as a user Reply with quote

I can no longer login as a normal user. I was su'd to root doing some maintenance work and must have messed something up, but I don't know what. When I try to login as a user now, I get a message "no home directory /home/username". The /home/username directory definitely exists though. I did notice that that the owner:group of the /home directory had been changed to username:users, so I set it back to root:root, but I still can't login as a user. Logging in as root works fine. I tried adding a new user, which worked fine, but when I tried logging in as the new user, I got the same message.

The home directory file permissions are

drwxr-xr-x 4 root root 120 Oct 30 12:32 home

and the user directory permissions are

drwxr-xr-x 80 username users 4216 Oct 30 11:43 username

Any ideas on what I may have done? Thanks.

John
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Oct 30, 2004 4:10 am    Post subject: Reply with quote

It should be "username users". The only other options I can think of are trying "chown -R username:users /home/username", verifying the permissions on /tmp: "drwxrwxrwt", and verifying you aren't running out of disk space "df -h".
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
John2845
n00b
n00b


Joined: 02 Jun 2003
Posts: 37

PostPosted: Sat Oct 30, 2004 4:22 am    Post subject: Reply with quote

[quote]It should be "username users"[/quote]

Hi,

What "It" are you referring to? The /home directory? Thanks.

The /tmp directory seems correct
drwxrwxrwt 30 root root 2336 Oct 30 12:47 tmp

John
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Oct 30, 2004 4:29 am    Post subject: Re: Can't log in as a user Reply with quote

John2845 wrote:
and the user directory permissions are

drwxr-xr-x 80 username users 4216 Oct 30 11:43 username
Sorry. I meant that those permissions are correct.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
John2845
n00b
n00b


Joined: 02 Jun 2003
Posts: 37

PostPosted: Sat Oct 30, 2004 4:36 am    Post subject: Reply with quote

Ok, thanks. I'm still locked out of my user accounts. I'm about at my wits end now.

John
Back to top
View user's profile Send private message
John2845
n00b
n00b


Joined: 02 Jun 2003
Posts: 37

PostPosted: Sat Oct 30, 2004 5:30 am    Post subject: root directory permissions Reply with quote

What should the directory permissions be on the "/" directory. Mine currently are

drwxr-x--- 19 root root 432 Oct 30 13:42 .

Is this correct? I'm concerned about the world permissions be ---.

Thanks,
John
Back to top
View user's profile Send private message
John2845
n00b
n00b


Joined: 02 Jun 2003
Posts: 37

PostPosted: Sat Oct 30, 2004 6:10 am    Post subject: Solved Reply with quote

The / directory permissions were the problem. I did "chmod 755 /" and everything is working fine now.

John
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum