2007-11-11 05:16:11 +05:30
|
|
|
.\"$Id$
|
2007-10-07 17:14:51 +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)
|
|
|
|
.\"
|
|
|
|
.\" Japanese Version Copyright (c) 1997 Kazuyoshi Furutaka
|
|
|
|
.\" all rights reserved.
|
|
|
|
.\" Translated Fri Feb 14 23:06:00 JST 1997
|
|
|
|
.\" by Kazuyoshi Furutaka <furutaka@Flux.tokai.jaeri.go.jp>
|
|
|
|
.\" Updated & Modified Thu Oct 14 1997 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
|
2007-10-07 17:14:59 +05:30
|
|
|
.\" Updated Fri Jan 12 2001 by Kentaro Shirakata <argrath@ub32.org>
|
2007-10-07 17:15:23 +05:30
|
|
|
.\" Updated Mon Mar 4 2002 by kentaro Shirakata <argrath@ub32.org>
|
|
|
|
.\" Modified Sat 21 Sep 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
|
2007-10-07 17:14:51 +05:30
|
|
|
.\"
|
|
|
|
.TH LASTLOG 8
|
2007-10-07 17:17:11 +05:30
|
|
|
.SH 名前
|
|
|
|
lastlog \- lastlog ファイルを調べる
|
|
|
|
.SH 書式
|
2007-10-07 17:15:23 +05:30
|
|
|
.TP 8
|
2007-10-07 17:16:07 +05:30
|
|
|
\fBlastlog\fR [(\fB\-u\fR|\fB\-\-user\fR) \fIlogin\fR]
|
|
|
|
[(\fB\-t\fR|\fB\-\-time\fR) \fIdays\fR] [(\fB\-h\fR|\fB\-\-help\fR)]
|
2007-10-07 17:17:11 +05:30
|
|
|
.SH 説明
|
|
|
|
\fBlastlog\fR は最終ログインの記録ファイル
|
|
|
|
\fI/var/log/lastlog\fR の内容を整形して表示する。
|
|
|
|
\fBログイン名\fR・\fBポート\fR・\fB最終ログイン時刻\fR、が表示される。
|
|
|
|
オプションを指定しなかった場合、デフォルトでは
|
|
|
|
lastlog エントリを UID の数値でソートして表示する。
|
2007-10-07 17:15:23 +05:30
|
|
|
.TP
|
2007-10-07 17:16:07 +05:30
|
|
|
\fB\-u\fR, \fB\-\-user\fR \fIlogin\-name\fR
|
2007-10-07 17:17:11 +05:30
|
|
|
\fIlogin\-name\fR の記録だけを表示する。
|
2007-10-07 17:15:23 +05:30
|
|
|
.TP
|
2007-10-07 17:16:07 +05:30
|
|
|
\fB\-t\fR, \fB\-\-time\fR \fIdays\fR
|
2007-10-07 17:17:11 +05:30
|
|
|
最近 \fIdays\fR 日以内の最終ログインを表示する。
|
2007-10-07 17:15:23 +05:30
|
|
|
.TP
|
2007-10-07 17:16:07 +05:30
|
|
|
\fB\-h\fR, \fB\-\-help\fR
|
2007-10-07 17:17:11 +05:30
|
|
|
オンラインヘルプを表示して終了する。
|
2007-10-07 17:15:23 +05:30
|
|
|
.PP
|
2007-10-07 17:17:11 +05:30
|
|
|
\fB\-u\fR フラグを用いると \fB\-t\fR は無視される。
|
|
|
|
.\"nakano というのが実際の動作のように見えるのだが。
|
2007-10-07 17:14:51 +05:30
|
|
|
.PP
|
2007-10-07 17:17:11 +05:30
|
|
|
一度もログインしていないユーザに対しては、
|
|
|
|
ポートと時刻の代わりに
|
2007-10-07 17:14:51 +05:30
|
|
|
\fB"**Never logged in**"\fR
|
2007-10-07 17:17:11 +05:30
|
|
|
というメッセージが表示される。
|
|
|
|
.SH ファイル
|
|
|
|
\fI/var/log/lastlog\fR \- lastlog 記録ファイル
|
|
|
|
.SH 警告
|
|
|
|
UID 番号に大きな飛びがあると、
|
|
|
|
lastlog プログラムは長時間画面に何も出力しないまま
|
|
|
|
実行を続ける (例えば mmdf が 800 で最後の UID が 170 の場合、
|
|
|
|
UID が 171\-799 の間プログラムは何も出力しないので、
|
|
|
|
ハングしたように見える)。
|
|
|
|
.SH 著者
|
2007-10-07 17:14:59 +05:30
|
|
|
Julianne Frances Haugh (jockgrrl@ix.netcom.com)
|
2007-10-07 17:15:23 +05:30
|
|
|
.BR
|
2007-10-07 17:14:51 +05:30
|
|
|
Phillip Street
|