1、禁止系统的Ctrl+Alt+Del
# cat /etc/event.d/control-alt-delete
# # control-alt-delete - emergency keypress handling
# #
# # This task is run whenever the Control-Alt-Delete key combination is
# # pressed. Usually used to shut down the machine.
#
# start on control-alt-delete
#
# exec /sbin/shutdown -r now "Control-Alt-Delete pressed"
2、禁止Fluxbox的Ctrl+Alt+Del
# cat ~/.fluxbox/keys | grep -i exit
# exit fluxbox
# Control Mod1 Delete :Exit
3、去掉系统多余的tty
# cat /etc/event.d/tty6
# # tty6 - getty
# #
# # This service maintains a getty on tty6 from the point the system is
# # started until it is shut down again.
#
# start on stopped rc2
# start on stopped rc3
# start on stopped rc4
# start on started prefdm
#
# stop on runlevel 0
# stop on runlevel 1
# stop on runlevel 6
#
# respawn
# exec /sbin/mingetty tty6
# ps -ef | grep -i tty
UID PID PPID C STIME TTY TIME CMD
root 1933 1 0 12:15 tty2 00:00:00 /sbin/mingetty tty2
root 2163 2162 12 12:15 tty3 00:26:23 /usr/bin/Xorg :0 -br -verbose -auth /var/run/gdm/auth-for-gdm-72V2K6/database -nolisten tcp
root 3907 3037 0 15:53 pts/1 00:00:00 grep -i tty
阅读(2397) | 评论(0) | 转发(0) |