RE: Cannot login as non-root user

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Check the permission on directories / and /home.

If the login kevin does not have the proper access permissions will
cause the problem. The login program is running as root (uid=0) when you
are prompted for the login name and password. Once you have answered the
password correctly the login program will do a setuid(1000) in your case
and then try to change directory. So if / or /home had permissions of
say drwxr-x---, the cd will fail because uid 1000 does not have
permission to read the directory.

Jack Allen
 

-----Original Message-----
From: Kevin Williams [mailto:kevkim55@xxxxxxxxx] 
Sent: Friday, January 12, 2007 12:21 PM
To: Pluggable Authentication Modules
Subject: Re: Cannot login as non-root user

Apologize for the misunderstanding.

I really missed the "uid=0" from the log output !! 

I'm really surprised, why would the uid be zero when I am trying to
login as 
non-root user ?? I double checkd /etc/passwd and /etc/group and found
that 
root user has both uid and gid set to 0 and non-root user's (kevin)
account 
has uid and gid set to 1000.

I haven't got a clue whats going wrong  !!

I'd really appreciate any response in this regard.

Thanks

Kevin

On Thursday 11 January 2007 09:01, Trapp, Bob wrote:
> Is your uid actually 0?  If your user ids are conflicting with user
ids
> assigned to system tools, PAM may be getting confused.
>
> Bob Trapp
> btrapp@xxxxxxxxxxx
>
> -----Original Message-----
> From: pam-list-bounces@xxxxxxxxxx [mailto:pam-list-bounces@xxxxxxxxxx]
> On Behalf Of Kevin Williams
> Sent: Wednesday, January 10, 2007 11:50 PM
> To: pam-list@xxxxxxxxxx
> Subject: Cannot login as non-root user
>
> I've just installed gentoo on my laptop. I can't login as a non-root
> user be
> it in console or X windows !!
>
>
> Whe I try to login as a non-root user, after entering the password
> here's what
> I get:
> ----------------------------------------
> Unable to cd to /home/kevin
> Permission denied
> ---------------------------------------
>
> Looking into the system log, I found these lines:
>
>
------------------------------------------------------------------------
> ------------
> Jan 10 23:32:44 [login] pam_tally(login:account): option deny=0
allowed
> in
> auth phase only
> Jan 10 23:32:44 [login] pam_tally(login:account): unknown option:
> no_magic_root
> Jan 10 23:32:44 [login] pam_unix(login:session): session opened for
user
> kevin
> by kevin(uid=0)
> Jan 10 23:32:44 [login] unable to cd to `/home/kevin' for user
`kevin'_
> Jan 10 23:32:44 [login] pam_unix(login:session): session closed for
user
> kevin
>
------------------------------------------------------------------------
> -----------
>
> I've tried commenting out the lines relevant to the above messages,
yet
> it
> made no difference.
>
> /home/kevin does exist and has the permissions 0755.
>
> I've tried creating another user account and trying to login as the
new
> user
> results in the same error message. I'm stuck with this one, I can't
work
> in
> gentoo until and unless this issue is fixed !!
>
> Here's the thread I started on forums.gentoo.org:
> http://forums.gentoo.org/viewtopic-t-530899.html
>
> Any help in this regard will be hghly appreciated.
>
> Thanks.
>
> Kevin
>
> _______________________________________________
> Pam-list mailing list
> Pam-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/pam-list
>
> _______________________________________________
> Pam-list mailing list
> Pam-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/pam-list

_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list


_______________________________________________
Pam-list mailing list
Pam-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/pam-list

[Index of Archives]     [Fedora Users]     [Kernel]     [Red Hat Install]     [Linux for the blind]     [Gimp]

  Powered by Linux