docs/54201: [PATCH] login(1) does not modify utmp/lastlog in 5.x

Matthew George mdg at secureworks.net
Mon Jul 7 23:10:25 UTC 2003


>Number:         54201
>Category:       docs
>Synopsis:       [PATCH] login(1) does not modify utmp/lastlog in 5.x
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jul 07 16:10:22 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     mdg
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>Environment:
System: FreeBSD mdg.secureworks.net 5.1-RELEASE FreeBSD 5.1-RELEASE #2: Tue Jun 10 11:13:46 EDT 2003 mdg at mdg.secureworks.net:/usr/src/sys/i386/compile/GENERIC i386


>Description:
	In 5.x, all utmp interaction was pulled out of login(1) and put in pam_lastlog(8).

	This patch removes utmp references, as well as changes wording towards the top indicating
	that pam(8) may be used to configure authentication services.  The current doc is fairly
	indicates that login(1) must use password authentication.
>How-To-Repeat:

>Fix:

Note: these changes only apply to 5.x and later

Index: login.1
===================================================================
RCS file: /home/ncvs/src/usr.bin/login/login.1,v
retrieving revision 1.24
diff -u -r1.24 login.1
--- login.1	16 Oct 2002 15:17:38 -0000	1.24
+++ login.1	7 Jul 2003 21:14:05 -0000
@@ -52,7 +52,9 @@
 of the user fails,
 .Nm
 prompts for a user name.
-Authentication of users is done via passwords.
+Authentication of users is configurable via
+.Xr pam 8 .
+Password authentication is the default.
 .Pp
 The following options are available:
 .Bl -tag -width indent
@@ -101,13 +103,6 @@
 exists in the user's home directory, all of these messages are suppressed.
 This is to simplify logins for non-human users, such as
 .Xr uucp 1 .
-The
-.Nm
-utility then records an entry in the
-.Xr wtmp 5
-and
-.Xr utmp 5
-files and executes the user's command interpreter.
 .Pp
 The
 .Nm
@@ -139,12 +134,6 @@
 login class capabilities database
 .It Pa /etc/motd
 message-of-the-day
-.It Pa /var/run/utmp
-current logins
-.It Pa /var/log/lastlog
-last login account records
-.It Pa /var/log/wtmp
-login account records
 .It Pa /var/mail/user
 system mailboxes
 .It Pa \&.hushlogin
@@ -168,7 +157,6 @@
 .Xr fbtab 5 ,
 .Xr login.access 5 ,
 .Xr login.conf 5 ,
-.Xr utmp 5 ,
 .Xr environ 7 ,
 .Xr pam 8
 .Sh HISTORY


-- 
Matthew George
SecureWorks Technical Operations

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-doc mailing list