[Pkg-shadow-devel] Patch for login.1

Christian Perrier bubulle@kheops.frmug.org
Thu, 9 Jun 2005 22:47:09 +0200


--EuxKj2iCbKjpUGkD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

While still digging in our patches for manpages, here I come with a
patch which applied to login.1 in order to add some precisions about
the respective roles of login, getty and init with regard to the utmp
file.

This patch is relative to your CVS directory.

-- 



--EuxKj2iCbKjpUGkD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="login.diff"

--- login.1.old	2005-06-09 21:13:32.000000000 +0200
+++ login.1	2005-06-09 22:41:12.000000000 +0200
@@ -99,6 +99,15 @@
 may be in use at any particular site.
 .PP
 The location of files is subject to differences in system configuration.
+.PP
+The \fBlogin\fR program is NOT responsible for removing users from the utmp file.
+It is the responsibility of
+.BR getty (8)
+and
+.BR init (8)
+to clean up apparent ownership of a terminal session.  If you use \fBlogin\fR
+from the shell prompt without \fBexec\fR, the user you use will
+continue to appear to be logged in even after you log out of the "subsession".
 .SH FILES
 \fI/var/run/utmp\fR		\- list of current login sessions
 .br

--EuxKj2iCbKjpUGkD--