Linux系统安全设置全攻略
在Linux系统的使用过程中,保障系统安全是至关重要的。下面将详细介绍一系列提升系统安全性的设置方法。
1. 禁用普通用户的控制台程序访问
在确保控制台安全的环境下,比如设置了BIOS和LILO密码,并且禁用了系统上所有物理电源和重置开关,可考虑完全禁止普通用户通过控制台访问如关机、重启等程序。
操作步骤如下:
运行以下命令:
[root@deep /]# rm -f /etc/security/console.apps/<servicename>
其中, <servicename> 是你要禁用控制台访问的程序名称。除非使用 xdm ,否则不要删除 xserver 文件,否则只有 root 用户能启动 X 服务器。
示例:
[root@deep /]# rm -f /etc/security/console.apps/halt
[root@deep /]# rm -f /etc/security/console.apps/poweroff
[root@deep /]# rm -f /etc/security/console.apps/reboot
[root@deep /]# rm -f /etc/security/console.apps/shutdown
[root@deep /]# rm -f /etc
超级会员免费看
订阅专栏 解锁全文
8

被折叠的 条评论
为什么被折叠?



