Bug 54201

Summary: [PATCH] login(1) does not modify utmp/lastlog in 5.x
Product: Documentation Reporter: Matthew George <mdg>
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Matthew George 2003-07-08 00:10:22 UTC
	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.

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



-- 
Matthew George
SecureWorks Technical Operations--7LknkkGkLU5kLEKuOR1gRmy5KrQ7jxHdASdrjDBf2hb6ysO2
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

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
Comment 1 dannyboy freebsd_committer freebsd_triage 2003-07-08 14:01:36 UTC
State Changed
From-To: open->closed

Committed, thanks again.