System Administration Guide: Security Services

How to Display Superuser (root) Access Attempts to the Console

  1. Become superuser or assume an equivalent role.

  2. Edit the /etc/default/su file.

  3. Uncomment the following line:


    CONSOLE=/dev/console

    Use the su command to become root, and verify that a message is printed on the system console.