Home > php教程 > php手册 > Linux安全检查方法

Linux安全检查方法

WBOY
Release: 2016-06-07 11:36:30
Original
1118 people have browsed it

作为程序员也可以了解一下这些知识
一、检查系统密码文件,查看文件修改日期
[root@fedora ~]# ls -l /etc/passwd

二、查看passwd文件中有哪些特权用户
[root@fedora ~]# awk -F: '$3= =0 {print $1}' /etc/passwd

三、查看系统里有没有空口令帐户
awk -F: 'length($2)= =0 {print $1}' /etc/shadow

四、检查系统守护进程
cat /etc/inetd.conf | grep -v "^#"

五、检查网络连接和监听端口
netstat –an
netstat –rn
ifconfig –a

六、查看正常情况下登录到本机的所有用户的历史记录
last

七、检查系统中的core文件
find / -name core -exec ls -l {} \;

八、检查系统文件完整性
rpm –qf /bin/ls
rpm -qf /bin/login
md5sum –b 文件名
md5sum –t 文件名九、查找是否有后门
cat /etc/crontab
ls /var/spool/cron/
cat /etc/rc.d/rc.local
ls /etc/rc.d
ls /etc/rc3.d
find / -type f -perm 4000

AD:真正免费,域名+虚机+企业邮箱=0元

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template