Chinaunix首页 | 论坛 | 博客
  • 博客访问: 91762
  • 博文数量: 16
  • 博客积分: 1735
  • 博客等级: 上尉
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-10 10:53
文章分类

全部博文(16)

文章存档

2010年(16)

分类: LINUX

2010-06-23 15:57:56

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) |
给主人留下些什么吧!~~