Ubuntu system security

Source: Internet
Author: User
1. make full use of the built-in check commands in Linux and Unix systems to detect the system. For example, the following commands are useful in Linux and Unix systems.

1. make full use of the built-in check commands in Linux and Unix systems to detect the system. For example, the following commands are useful in Linux and Unix systems:

-Who: check who logs on to the system;

-W: check who logs on to the system and what operations are being performed;

-Last: displays the users and TTYS that have been logged on to the system;

-History: displays commands run in the past by the system;

-Netstat: You can view the current network status;

-Top: dynamically checks system processes in real time;

-Finger: View all login users.

2. regularly check system logs, files, time, and process information. For example:

-Check the/var/log/messages log file to view the logon status of external users;

-Check the logon history files (such as. history files) in the/home/username directory );

-Check the. rhosts and. forward remote login files in the/home/username directory;

-Run the "find/-ctime-2-ctime + 1-ls" command to view the files modified in less than two days;

-Run the "ls-lac" command to view the real modification time of the file;

-Run the "cmp file1 file2" command to compare the file size changes;

-Protect important system commands, processes, and configuration files to prevent intruders from replacing them with the right to modify the system.

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.