Translated message

A translation of this page exists in English.

Red Hat Enterprise Linux システムが userhelper によって再起動されたのはなぜですか?

Solution Unverified - Updated -

Environment

  • Red Hat Enterprise Linux 5.5
  • Red Hat Enterprise Linux 6.3
  • usermode-1.88-3
  • usermode-1.102-3

Issue

  • /var/log/secure に以下のメッセージが出力され、システムが再起動します。
userhelper[<pid>]: running '/sbin/reboot' with root privileges on behalf of 'root'
  • /var/log/secure に以下のメッセージが出力され、システムの電源が落ちます。
 userhelper[]: running '/sbin/poweroff' with root privileges on behalf of 'root'

Resolution

  • userhelper インターフェイスで reboot コマンドを呼び出している可能性があるアプリケーション/ユーザーを特定してください。

Root Cause

  • 以下のコマンドが、この記事に記載されている再起動を引き起こします。
 #userhelper -t -w reboot
  • 以下のコマンドが、電源断を引き起こします。
 # userhelper -t -w poweroff

コンソールが保護されている環境 (BIOS およびブートローダーパスワードが設定されていたり、Ctrl+ Alt+ Delete が無効化されていたり、電源とリセットスイッチが無効化されている場合等) 以外では、デフォルトでコンソールからアクセス可能であるため、コンソールから poweroff、halt 及び reboot を実行することをユーザーに許可することは望ましくありません。

  • これらの機能を無効化するには、以下のコマンドを root で実行してください。
rm -f /etc/security/console.apps/poweroff
rm -f /etc/security/console.apps/halt
rm -f /etc/security/console.apps/reboot

Diagnostic Steps

  • sosreport を取得して、/var/log/messages および /var/log/secure ファイルを確認します。
/var/log/messages:  
5 04:10:03 xxxx shutdown[<pid>]: shutting down for system reboot  
5 04:10:08 xxxx auditd[<pid>]:The audit daemon is exiting.  
5 04:10:08 xxxx kernel: audit(1325704208.980:719288): audit_pid=0 old=2990 by auid=4294967295  
5 04:10:09 xxxx kernel:Kernel logging (proc) stopped.  
5 04:10:09 xxxx kernel:Kernel log daemon terminating.  
5 04:10:10 xxxx exiting on signal 15  
5 04:12:22 xxxx syslogd 1.4.1: restart.  
/var/log/secure:  
5 04:10:03 xxxx userhelper[<pid>]: running '/sbin/reboot' with root privileges on behalf of 'root'

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments