[CLUE-Tech] login process

David Anselmi anselmi at anselmi.us
Thu Oct 14 17:47:54 MDT 2004


mike havlicek wrote:

> Thanks, I checked these things. The host just seems to
> not allow any logins for mortals ... I just tried
> setting up ssh keys for my mortal user and that
> doesn't work either .... sigh .... I think I need a
> tutorial on the whole login process so I can
> troubleshoot :)

Did you read the login man page?  And you probably need to look at PAM 
and sshd as well (since sshd doesn't use login, IIRC).

Basically, login looks up the login name in /etc/passwd, compares the 
passwd has with what's in /etc/shadow, and runs the user's shell if they 
match.

I don't know how PAM hooks in but it basically does the "compare the 
passwd hash" step.  I don't know how sshd does it but I think it does 
all the login stuff itself.

Finally, I think you're getting logged in and then getting logged out 
immediately (i.e., the process (normally your shell) started by 
login/sshd exits).  So in that case you might read INVOCATION in bash(1).

Just a hunch,
Dave





More information about the clue-tech mailing list