2007-10-07 17:16:07 +05:30
|
|
|
.\"$Id: lastlog.8,v 1.21 2005/04/05 18:47:50 kloczek Exp $
|
2007-10-07 17:14:44 +05:30
|
|
|
.\" Copyright 1992, Phillip Street and Julianne Frances Haugh
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\" @(#)lastlog.8 3.3 08:24:58 29 Sep 1993 (National Guard Release)
|
|
|
|
.TH LASTLOG 8
|
|
|
|
.SH NAME
|
|
|
|
lastlog \- examine lastlog file
|
|
|
|
.SH SYNOPSIS
|
2007-10-07 17:14:51 +05:30
|
|
|
.TP 8
|
2007-10-07 17:15:58 +05:30
|
|
|
\fBlastlog\fR [\fBoptions\fR]
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH DESCRIPTION
|
2007-10-07 17:14:51 +05:30
|
|
|
.PP
|
|
|
|
\fBlastlog\fR formats and prints the contents of the last login log
|
2007-10-07 17:16:07 +05:30
|
|
|
\fI/var/log/lastlog\fR file. The \fBlogin\-name\fR, \fBport\fR, and \fBlast
|
2007-10-07 17:14:51 +05:30
|
|
|
login time\fR will be printed. The default (no flags) causes lastlog entries
|
2007-10-07 17:15:23 +05:30
|
|
|
to be printed, sorted by their order in \fB/etc/passwd\fR.
|
2007-10-07 17:15:49 +05:30
|
|
|
.SH OPTIONS
|
2007-10-07 17:14:51 +05:30
|
|
|
.TP
|
2007-10-07 17:15:58 +05:30
|
|
|
The options which apply to the \fBlastlog\fR command are:
|
2007-10-07 17:16:07 +05:30
|
|
|
.IP "\fB\-h\fR, \fB\-\-help\fR"
|
2007-10-07 17:15:58 +05:30
|
|
|
Print help message and exit.
|
2007-10-07 17:16:07 +05:30
|
|
|
.IP "\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR"
|
2007-10-07 17:15:58 +05:30
|
|
|
Print the lastlog records more recent than \fIDAYS\fR.
|
2007-10-07 17:16:07 +05:30
|
|
|
.IP "\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR"
|
2007-10-07 17:15:58 +05:30
|
|
|
Print the lastlog record for user with specified \fILOGIN\fR only.
|
2007-10-07 17:14:51 +05:30
|
|
|
.TP
|
2007-10-07 17:16:07 +05:30
|
|
|
The \fB\-t\fR flag overrides the use of \fB\-u\fR.
|
2007-10-07 17:14:44 +05:30
|
|
|
.PP
|
2007-10-07 17:14:51 +05:30
|
|
|
If the user has never logged in the message \fB"**Never logged in**"\fR will
|
2007-10-07 17:14:44 +05:30
|
|
|
be displayed instead of the port and time.
|
|
|
|
.SH FILES
|
2007-10-07 17:16:07 +05:30
|
|
|
\fI/var/log/lastlog\fR \- lastlog logging file
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH CAVEATS
|
|
|
|
Large gaps in uid numbers will cause the lastlog program to run longer with
|
|
|
|
no output to the screen (i.e. if mmdf=800 and last uid=170, program will
|
2007-10-07 17:16:07 +05:30
|
|
|
appear to hang as it processes uid 171\-799).
|
2007-10-07 17:14:44 +05:30
|
|
|
.SH AUTHORS
|
|
|
|
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
|
2007-10-07 17:15:58 +05:30
|
|
|
.br
|
2007-10-07 17:14:44 +05:30
|
|
|
Phillip Street
|