From owner-freebsd-doc@FreeBSD.ORG Mon Jul 7 16:10:24 2003 Return-Path: Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6190437B404 for ; Mon, 7 Jul 2003 16:10:24 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39ACD43F75 for ; Mon, 7 Jul 2003 16:10:22 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h67NAMUp068772 for ; Mon, 7 Jul 2003 16:10:22 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h67NAMO2068771; Mon, 7 Jul 2003 16:10:22 -0700 (PDT) Resent-Date: Mon, 7 Jul 2003 16:10:22 -0700 (PDT) Resent-Message-Id: <200307072310.h67NAMO2068771@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-doc@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Matthew George Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DE3E37B401 for ; Mon, 7 Jul 2003 16:04:25 -0700 (PDT) Received: from mail.secureworks.net (mail.secureworks.net [209.101.212.155]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D5B843F3F for ; Mon, 7 Jul 2003 16:04:24 -0700 (PDT) (envelope-from mdg@secureworks.net) Received: (qmail 18128 invoked from network); 7 Jul 2003 23:01:36 -0000 Received: from unknown (HELO HOST-192-168-17-31.internal.secureworks.net) (209.101.212.253) by mail.secureworks.net with SMTP; 7 Jul 2003 23:01:36 -0000 Message-Id: <20030707190154.I64707@localhost> Date: Mon, 7 Jul 2003 19:04:21 -0400 (EDT) From: Matthew George To: freebsd-gnats-submit@FreeBSD.org Subject: docs/54200: [PATCH] utmp.5 needs to reflect pam changes X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2003 23:10:24 -0000 >Number: 54200 >Category: docs >Synopsis: [PATCH] utmp.5 needs to reflect pam changes >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:21 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Matthew George >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@mdg.secureworks.net:/usr/src/sys/i386/compile/GENERIC i386 >Description: utmp.5 still has several references to login(1), although in 5.x and later lastlog/utmp/wtmp manipulation is performed via pam_lastlog(8). >How-To-Repeat: >Fix: Index: utmp.5 =================================================================== RCS file: /home/ncvs/src/share/man/man5/utmp.5,v retrieving revision 1.19 diff -u -r1.19 utmp.5 --- utmp.5 4 Oct 2002 00:25:50 -0000 1.19 +++ utmp.5 7 Jul 2003 22:36:11 -0000 @@ -100,20 +100,17 @@ structures and is a binary log file, that is, grows linearly at its end. .Pp -Each time a user logs in, the -.Xr login 1 +By default, each time a user logs in, the +.Xr pam_lastlog 8 program looks up the user's .Tn UID in the file .Nm lastlog . If it is found, the timestamp of the last time the user logged in, the terminal line and the hostname -are written to the standard output (unless the login is -.Em quiet , -see -.Xr login 1 ) . +are written to the standard output. The -.Xr login 1 +.Xr pam_lastlog 8 program then records the new login time in the file .Nm lastlog . .Pp @@ -140,7 +137,7 @@ .Xr who 1 . .Pp Next, the -.Xr login 1 +.Xr pam_lastlog 8 program opens the file .Nm wtmp , and appends the user's @@ -216,7 +213,7 @@ .Xr newsyslog 8 . .Pp If any one of these files does not exist, it is not created by -.Xr login 1 . +.Xr pam_lastlog 8 . They must be created manually. .Pp The supplied @@ -248,7 +245,6 @@ .El .Sh SEE ALSO .Xr last 1 , -.Xr login 1 , .Xr w 1 , .Xr who 1 , .Xr login 3 , @@ -256,7 +252,8 @@ .Xr logwtmp 3 , .Xr ttyslot 3 , .Xr ac 8 , -.Xr init 8 +.Xr init 8, +.Xr pam_lastlog 8 .Sh HISTORY A .Nm -- Matthew George SecureWorks Technical Operations >Release-Note: >Audit-Trail: >Unformatted: