xref: /freebsd/usr.sbin/lastlogin/lastlogin.8 (revision d2d06762f9a9ae3b7cb6fbc12385a5ba76c23204)
1b3b01ff3SRuslan Ermilov.\" $FreeBSD$
2b3b01ff3SRuslan Ermilov.\"	$NetBSD: lastlogin.8,v 1.3 1998/02/06 06:20:39 perry Exp $
3b3b01ff3SRuslan Ermilov.\"
4b3b01ff3SRuslan Ermilov.\" Copyright (c) 1996 John M. Vinopal
5b3b01ff3SRuslan Ermilov.\" All rights reserved.
6b3b01ff3SRuslan Ermilov.\"
7b3b01ff3SRuslan Ermilov.\" Redistribution and use in source and binary forms, with or without
8b3b01ff3SRuslan Ermilov.\" modification, are permitted provided that the following conditions
9b3b01ff3SRuslan Ermilov.\" are met:
10b3b01ff3SRuslan Ermilov.\" 1. Redistributions of source code must retain the above copyright
11b3b01ff3SRuslan Ermilov.\"    notice, this list of conditions and the following disclaimer.
12b3b01ff3SRuslan Ermilov.\" 2. Redistributions in binary form must reproduce the above copyright
13b3b01ff3SRuslan Ermilov.\"    notice, this list of conditions and the following disclaimer in the
14b3b01ff3SRuslan Ermilov.\"    documentation and/or other materials provided with the distribution.
15b3b01ff3SRuslan Ermilov.\" 3. All advertising materials mentioning features or use of this software
16b3b01ff3SRuslan Ermilov.\"    must display the following acknowledgement:
17b3b01ff3SRuslan Ermilov.\"	This product includes software developed for the NetBSD Project
18b3b01ff3SRuslan Ermilov.\"	by John M. Vinopal.
19b3b01ff3SRuslan Ermilov.\" 4. The name of the author may not be used to endorse or promote products
20b3b01ff3SRuslan Ermilov.\"    derived from this software without specific prior written permission.
21b3b01ff3SRuslan Ermilov.\"
22b3b01ff3SRuslan Ermilov.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23b3b01ff3SRuslan Ermilov.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24b3b01ff3SRuslan Ermilov.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25b3b01ff3SRuslan Ermilov.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26b3b01ff3SRuslan Ermilov.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27b3b01ff3SRuslan Ermilov.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28b3b01ff3SRuslan Ermilov.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
29b3b01ff3SRuslan Ermilov.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30b3b01ff3SRuslan Ermilov.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31b3b01ff3SRuslan Ermilov.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32b3b01ff3SRuslan Ermilov.\" SUCH DAMAGE.
33b3b01ff3SRuslan Ermilov.\"
34b3b01ff3SRuslan Ermilov.Dd January 11, 1996
35b3b01ff3SRuslan Ermilov.Dt LASTLOGIN 8
36b3b01ff3SRuslan Ermilov.Os
37b3b01ff3SRuslan Ermilov.Sh NAME
38b3b01ff3SRuslan Ermilov.Nm lastlogin
39b3b01ff3SRuslan Ermilov.Nd indicate last login time of users
40b3b01ff3SRuslan Ermilov.Sh SYNOPSIS
41b3b01ff3SRuslan Ermilov.Nm
42d2d06762SRuslan Ermilov.Op Ar user ...
43b3b01ff3SRuslan Ermilov.Sh DESCRIPTION
44b3b01ff3SRuslan Ermilov.Nm
45d2d06762SRuslan Ermilovwill list the last login session of each specified
46d2d06762SRuslan Ermilov.Ar user ,
47b3b01ff3SRuslan Ermilovor for all users by default.  Each line of output contains
48b3b01ff3SRuslan Ermilovthe user name, the tty from which the session was conducted, any
49b3b01ff3SRuslan Ermilovhostname, and the start time for the session.
50b3b01ff3SRuslan Ermilov.Pp
51d2d06762SRuslan ErmilovIf more than one
52d2d06762SRuslan Ermilov.Ar user
53d2d06762SRuslan Ermilovis given, the session information for each user is printed in
54b3b01ff3SRuslan Ermilovthe order given on the command line.  Otherwise, information
55b3b01ff3SRuslan Ermilovfor all users is printed, sorted by uid.
56b3b01ff3SRuslan Ermilov.Pp
57b3b01ff3SRuslan Ermilov.Nm
58b3b01ff3SRuslan Ermilovdiffers from
59b3b01ff3SRuslan Ermilov.Xr last 1
60b3b01ff3SRuslan Ermilovin that it only prints information regarding the very last login session.
61b3b01ff3SRuslan ErmilovThe last login database is never turned over or deleted in standard usage.
62b3b01ff3SRuslan Ermilov.Sh FILES
63b3b01ff3SRuslan Ermilov.Bl -tag -width /var/log/lastlog -compact
64b3b01ff3SRuslan Ermilov.It Pa /var/log/lastlog
65b3b01ff3SRuslan Ermilovlast login database
66b3b01ff3SRuslan Ermilov.El
67b3b01ff3SRuslan Ermilov.Sh SEE ALSO
68b3b01ff3SRuslan Ermilov.Xr last 1 ,
69b3b01ff3SRuslan Ermilov.Xr lastlog 5 ,
70b3b01ff3SRuslan Ermilov.Xr ac 8
71b3b01ff3SRuslan Ermilov.Sh AUTHORS
72b3b01ff3SRuslan Ermilov.An John M. Vinopal
73b3b01ff3SRuslan Ermilovwrote this program in January 1996 and contributed it
74b3b01ff3SRuslan Ermilovto the
75b3b01ff3SRuslan Ermilov.Nx
76b3b01ff3SRuslan Ermilovproject.
77