Http:// OS .rdxx.com/Linux/2003-9/14/174629796.shtml
Author: Cold wind
By default, Linux uses the/etc/inittab file to control whether reboot or shutdown is performed when the system presses the [CTRL]-[alt]-[delete] key combination before the system terminal. If you want to, you can completely disable this function. In this file:
CA: ctrlaltdel:/sbin/shutdown-T3-R now
Add the annotator "#" to the beginning. In addition, we can also customize some non-root users to have the right to press Ctrl-alt-delete in front of the console to shut down the system. The procedure is as follows:
1. Add the-a tag in the above configuration. For example:
CA: ctrlaltdel:/sbin/shutdown-a-T3-R now
-A indicates the shutdown notification.ProgramView the/etc/shutdown. allow file, which will be created below
2. Create the shutdown. allow file in the/etc/directory, which lists the usernames that can be disabled by pressing the Ctrl-alt-delete combination button. The shotdown. allow file format is one user per line:
Chenlf
Peter
Oracle8i
In the above example, the system will allow users to shut down the system by pressing [CTRL]-[alt]-[delete] in front of the console. When a user uses the combination key [CTRL]-[alt]-[delete], shutdown checks/etc/shutdown. whether the user (or root) in allow is currently logged on through the virtual terminal. If any of them is logged on, shutdown will continue; otherwise, an error message will be returned:
No authorized users logged in