login -f changing session getlogin(2)

Garrett Wollman wollman at hergotha.csail.mit.edu
Thu Oct 1 21:21:27 UTC 2015


In article <20151001203436.GA22737 at stack.nl>, jilles at stack.nl writes:

>I think the supposed use case for login -f is a remote login daemon that
>handles authentication by itself but wants to delegate account and
>session functionality. Indeed, sshd has UseLogin, but it is rarely used
>and discouraged.

Historically, as I remember it, "login" was a shell built-in that was
effectively an alias for "exec login".  It may still be that way in
antique csh.  The assumption from time immemorial is that if login
exits, the parent process will not distinguish it from any other
logout, so login is permitted to overwrite persistent session state.

-GAWollman


More information about the freebsd-arch mailing list