Solaris のシステム管理 (第 2 巻)

su コマンドを使用中のユーザーを監視する方法

  1. スーパーユーザーになります。

  2. /etc/default/su ファイルを編集します。

  3. 次の行のコメントを解除します。


    SULOG=/var/adm/sulog
  4. /etc/default/su ファイルを変更し終わったら、su コマンドを何度か使用して /var/adm/sulog ファイルを表示します。su コマンドを使用した時刻ごとにエントリが表示されます。


    # more /var/adm/sulog
    SU 12/20 16:26 + pts/0 nathan-root
    SU 12/21 10:59 + pts/0 nathan-root
    SU 01/12 11:11 + pts/0 root-joebob
    SU 01/12 14:56 + pts/0 pmorph-root
    SU 01/12 14:57 + pts/0 pmorph-root