System Administration Guide: Security Services
How to Display Superuser (root) Access Attempts to the Console
-
Become superuser or assume an equivalent role.
-
Edit the /etc/default/su file.
-
Uncomment the following line:
-
Use the su command to become root.
Verify that a message is printed on the system console.
This method immediately detects someone who is trying to gain superuser access to the system that you are on.
- © 2010, Oracle Corporation and/or its affiliates