Linux Security Check Method

Source: Internet
Author: User
Provides various official and user-released code examples and code reference. You are welcome to exchange and learn this knowledge as a programmer.
1. Check the system password file and check the file modification date.
[Root @ fedora ~] # Ls-l/etc/passwd

2. View privileged users in the passwd file
[Root @ fedora ~] # Awk-F: '$3 = 0 {print $1}'/etc/passwd

3. check whether there is a blank password account in the system.
Awk-F: 'length ($2) = 0 {print $1} '/etc/shadow

4. Check the system daemon process
Cat/etc/inetd. conf | grep-v "^ #"

5. Check the network connection and listening port
Netstat-
Netstat-rn
Ifconfig-

6. View historical records of all users logging on to the local machine under normal conditions
Last

7. Check core files in the system
Find/-name core-exec ls-l {}\;

8. Check System File integrity
Rpm-qf/bin/ls
Rpm-qf/bin/login
Md5sum-B file name
Md5sum-t file name 9. check whether there is a backdoor
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: truly free, domain name + VM + enterprise mailbox = 0 RMB

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.