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 44490d5836SPhilippe CharnierThe 45b3b01ff3SRuslan Ermilov.Nm 46490d5836SPhilippe Charnierutility will list the last login session of each specified 47d2d06762SRuslan Ermilov.Ar user , 4807bfccd7SRuslan Ermilovor for all users by default. 4907bfccd7SRuslan ErmilovEach line of output contains 50b3b01ff3SRuslan Ermilovthe user name, the tty from which the session was conducted, any 51b3b01ff3SRuslan Ermilovhostname, and the start time for the session. 52b3b01ff3SRuslan Ermilov.Pp 53d2d06762SRuslan ErmilovIf more than one 54d2d06762SRuslan Ermilov.Ar user 55d2d06762SRuslan Ermilovis given, the session information for each user is printed in 5607bfccd7SRuslan Ermilovthe order given on the command line. 5707bfccd7SRuslan ErmilovOtherwise, information 58b3b01ff3SRuslan Ermilovfor all users is printed, sorted by uid. 59b3b01ff3SRuslan Ermilov.Pp 60490d5836SPhilippe CharnierThe 61b3b01ff3SRuslan Ermilov.Nm 62490d5836SPhilippe Charnierutility differs from 63b3b01ff3SRuslan Ermilov.Xr last 1 64b3b01ff3SRuslan Ermilovin that it only prints information regarding the very last login session. 65b3b01ff3SRuslan ErmilovThe last login database is never turned over or deleted in standard usage. 66b3b01ff3SRuslan Ermilov.Sh FILES 67b3b01ff3SRuslan Ermilov.Bl -tag -width /var/log/lastlog -compact 68b3b01ff3SRuslan Ermilov.It Pa /var/log/lastlog 69b3b01ff3SRuslan Ermilovlast login database 70b3b01ff3SRuslan Ermilov.El 71b3b01ff3SRuslan Ermilov.Sh SEE ALSO 72b3b01ff3SRuslan Ermilov.Xr last 1 , 73b3b01ff3SRuslan Ermilov.Xr lastlog 5 , 74b3b01ff3SRuslan Ermilov.Xr ac 8 75b3b01ff3SRuslan Ermilov.Sh AUTHORS 76b3b01ff3SRuslan Ermilov.An John M. Vinopal 77b3b01ff3SRuslan Ermilovwrote this program in January 1996 and contributed it 78b3b01ff3SRuslan Ermilovto the 79b3b01ff3SRuslan Ermilov.Nx 80b3b01ff3SRuslan Ermilovproject. 81