linux系统加固(3)
时间:2026-01-14
时间:2026-01-14
linux 系统加固手册。linux服务器安全。
chgrp root mysqlaccess
复制代码
设置权限 chmod 750 *cc*
chmod 750 *++*
chmod 750 ld
chmod 750 as
chmod 755 mysqlaccess
复制代码
把用户添加到组里
修改/etc/group
compiler:x:520:user1,user2
复制代码
5.ProFTP
你可以通过修改proftpd.conf来禁止root登陆
方法:
修改/etc/proftpd.conf
Add RootLogin off
复制代码
重启
proftpd /sbin/service proftpd stop
/sbin/service proftpd start
复制代码
6.TCP wrappers
编辑hosts.allow和hosts.deny可以限制或允许访问inet服务
方法:
限制访问inet服务
修改/etc/hosts.allow
建议格式: #Approved IP addresses
ALL:192.168.0.1
ALL:192.168.5.2
#CSV uploader machine
proftpd:10.0.0.5
#pop3 from antwhere
ipop3:ALL
上一篇:一个梦想 一种使命
下一篇:Mec-dh_y会议纪要模板