shadow/man/lastlog.8

79 lines
1.9 KiB
Groff

.\"Generated by db2man.xsl. Don't modify this, modify the source.
.de Sh \" Subsection
.br
.if t .Sp
.ne 5
.PP
\fB\\$1\fR
.PP
..
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Ip \" List item
.br
.ie \\n(.$>=3 .ne \\$3
.el .ne 3
.IP "\\$1" \\$2
..
.TH "LASTLOG" 8 "" "" ""
.SH NAME
lastlog \- examine lastlog file
.SH "SYNOPSIS"
.ad l
.hy 0
.HP 8
\fBlastlog\fR [\fIoptions\fR]
.ad
.hy
.SH "DESCRIPTION"
.PP
\fBlastlog\fR formats and prints the contents of the last login log \fI/var/log/lastlog\fR file\&. The \fI login\-name\fR, \fIport\fR, and \fIlast login time\fR will be printed\&. The default (no flags) causes lastlog entries to be printed, sorted by their order in \fI/etc/passwd\fR\&.
.SH "OPTIONS"
.TP
The options which apply to the \fBlastlog\fR command are:
.TP
\fB\-h\fR, \fB\-\-help\fR
Print help message and exit\&.
.TP
\fB\-t\fR, \fB\-\-time\fR \fIDAYS\fR
Print the lastlog records more recent than \fIDAYS\fR\&.
.TP
\fB\-u\fR, \fB\-\-user\fR \fILOGIN\fR
Print the lastlog record for user with specified \fILOGIN\fR only\&.
.TP
The \fB\-t\fR flag overrides the use of \fB\-u\fR\&.
.PP
If the user has never logged in the message \fI **Never logged in**\fR will be displayed instead of the port and time\&.
.SH "NOTE"
.PP
The \fBlastlog\fR file is a database which contains info on the last login of each user\&. You should not rotate it\&. It is a sparse file, so its size on the disk is much smaller than the one shown by \fBls \-l\fR (which can indicate a really big file if you have an high UID)\&. You can display its real size with \fBls \-s\fR\&.
.SH "FILES"
.TP
\fI/var/log/lastlog\fR
lastlog logging file
.SH "CAVEATS"
.PP
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 appear to hang as it processes uid 171\-799)\&.
.SH "AUTHORS"
.PP
Julianne Frances Haugh (jockgrrl@ix\&.netcom\&.com) Phillip Street