From: nekral-guest Date: Wed, 21 May 2008 18:58:06 +0000 (+0000) Subject: Indicate that login should be executed with "exec login" if called from a shell. X-Git-Tag: 4.1.2~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9ac46305f1528a4fd3bc4ee3449af04cf2d36bf;p=shadow Indicate that login should be executed with "exec login" if called from a shell. --- diff --git a/ChangeLog b/ChangeLog index 2c1744d7..11162b68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-21 Nicolas François + + * man/login.1.xml: Indicate that login should be executed with + "exec login" if called from a shell. + 2008-05-21 Nicolas François * man/passwd.1.xml: Remove the advices for the choice of a good diff --git a/man/login.1.xml b/man/login.1.xml index e577bd94..2380f242 100644 --- a/man/login.1.xml +++ b/man/login.1.xml @@ -75,9 +75,11 @@ with the system. It is normally invoked automatically by responding to the login: prompt on the user's terminal. login may be special to the shell and may - not be invoked as a sub-process. Typically, login - is treated by the shell as exec login - which causes the user to exit from the current shell. Attempting to + not be invoked as a sub-process. When called from a shell, + login should be executed as + exec login which will cause the user + to exit from the current shell (and thus will prevent the new logged + in user to return to the session of the caller). Attempting to execute login from any shell but the login shell will produce an error message.