逆引きUNIXコマンド/lastコマンドで過去のログイン履歴を見たい場合
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
]
開始行:
#navi(../)
* lastコマンドで過去のログイン履歴を見たい場合 [#s3727641]
lastコマンドを実行すると以下のように''wtmp begins Wed Oct...
$ last
sakura pts/1 xxx.xxx.xxx.xxx Wed Oct 1 09:30 ...
tsubaki pts/0 xxx.xxx.xxx.xxx Wed Oct 1 09:10 ...
sakura pts/0 fobarhoge Wed Oct 1 08:20 -...
wtmp begins Wed Oct 10 08:20:59 2012
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#z581ca66]
-[[ログインユーザの履歴を表示する・lastコマンド>逆引きUNI...
-[[不正ログインユーザの履歴を表示する・lastbコマンド>逆引...
* wtmp begins 日時の意味 [#oe1e271c]
lastコマンドは/var/log/wtmpファイルを使用しています。~
''wtmp begins Wed Oct 10 08:20:59 2012''は、10/10 8:20:59...
したがって、過去のwtmpファイルは別名として保存されていま...
* wtmpについて [#z2d16d04]
wtmpが保存されているログディレクトリでlsした結果です。
$ ls /var/log/wtmp*
/var/log/wtmp /var/log/wtmp.1
wtmpとwtmp.1の2つのファイルが作成されています。~
wtmp.1の1は、1つ前のwtmpであることを示しています。
* 過去のwtmpを使用する [#v6481622]
以下のように-fオプションを使用すればwtmpファイルを指定し...
last -f /var/log/wtmp.1
$ last -f /var/log/wtmp.1
<snip>
root pts/2 xx.xxx.xxx.xx Thu Jul 20 03:26 ...
root pts/1 xx.xxx.xxx.xx Thu Jul 20 02:10 ...
root pts/0 xx.xxx.xxx.xx Thu Jul 20 02:07 ...
reboot system boot 2.6.18-308.el5 Thu Jul 20 02:06 ...
root pts/0 xx.xxx.xxx.xx Thu Jul 20 01:54 ...
root tty2 Thu Jul 20 01:03 ...
root pts/0 sakura Thu Jul 20 00:59 ...
root tty1 Thu Jul 20 00:59 ...
<snip>
本操作はCentOSで行いましたがDebian系でも同様のファイル名...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
終了行:
#navi(../)
* lastコマンドで過去のログイン履歴を見たい場合 [#s3727641]
lastコマンドを実行すると以下のように''wtmp begins Wed Oct...
$ last
sakura pts/1 xxx.xxx.xxx.xxx Wed Oct 1 09:30 ...
tsubaki pts/0 xxx.xxx.xxx.xxx Wed Oct 1 09:10 ...
sakura pts/0 fobarhoge Wed Oct 1 08:20 -...
wtmp begins Wed Oct 10 08:20:59 2012
#contents
#htmlinsertpcsp(linux_ads_top.html,linux-sp.html)
* 関連資料 [#z581ca66]
-[[ログインユーザの履歴を表示する・lastコマンド>逆引きUNI...
-[[不正ログインユーザの履歴を表示する・lastbコマンド>逆引...
* wtmp begins 日時の意味 [#oe1e271c]
lastコマンドは/var/log/wtmpファイルを使用しています。~
''wtmp begins Wed Oct 10 08:20:59 2012''は、10/10 8:20:59...
したがって、過去のwtmpファイルは別名として保存されていま...
* wtmpについて [#z2d16d04]
wtmpが保存されているログディレクトリでlsした結果です。
$ ls /var/log/wtmp*
/var/log/wtmp /var/log/wtmp.1
wtmpとwtmp.1の2つのファイルが作成されています。~
wtmp.1の1は、1つ前のwtmpであることを示しています。
* 過去のwtmpを使用する [#v6481622]
以下のように-fオプションを使用すればwtmpファイルを指定し...
last -f /var/log/wtmp.1
$ last -f /var/log/wtmp.1
<snip>
root pts/2 xx.xxx.xxx.xx Thu Jul 20 03:26 ...
root pts/1 xx.xxx.xxx.xx Thu Jul 20 02:10 ...
root pts/0 xx.xxx.xxx.xx Thu Jul 20 02:07 ...
reboot system boot 2.6.18-308.el5 Thu Jul 20 02:06 ...
root pts/0 xx.xxx.xxx.xx Thu Jul 20 01:54 ...
root tty2 Thu Jul 20 01:03 ...
root pts/0 sakura Thu Jul 20 00:59 ...
root tty1 Thu Jul 20 00:59 ...
<snip>
本操作はCentOSで行いましたがDebian系でも同様のファイル名...
#htmlinsertpcsp(linux_ads_btm.html,linux-sp.html)
ページ名: