Examples of necessary protection measures for Linux operating system security

Source: Internet
Author: User
Tags ftp login log linux

System security Log files

The record file inside the operating system is an important clue to detect whether there is a network intrusion. If your system is connected directly to the Internet, you find a lot of people doing telnet/ftp login attempts on your system and can run "#more/var/log/secure | grep refused "to check the system for attacks to take appropriate countermeasures, such as using SSH to replace Telnet/rlogin, and so on.

Startup and logon security

1. BIOS Security

Setting the BIOS password and modifying the boot order prevents booting the system from the floppy disk.

2. User Password

User password is a basic starting point for Linux security, many people use the user password is too simple, which is tantamount to the intruder open the door, although theoretically, as long as there is enough time and resources available, there is no user password can not be cracked. But choosing the right password is hard to crack, and a better user password is a string of characters that only he can remember and understand, and never write anywhere.

3. Default account Number

All default accounts that are started by the operating system itself should be banned and should be done when you first install the system, and Linux provides a number of default accounts, and the more accounts you have, the more vulnerable the system is to attack.

You can delete an account with the following command.

# userdel用户名

or delete the group user account with the following command.

# groupdel username

4. password file

The chattr command adds immutable properties to the following file, preventing unauthorized users from gaining permissions.

# chattr +i /etc/passwd
# chattr +i /etc/shadow
# chattr +i /etc/group
# chattr +i /etc/gshadow

5. Prohibit ctrl+alt+delete reboot machine command

Modify the/etc/inittab file to comment out the "Ca::ctrlaltdel:/sbin/shutdown-t3-r Now" line. Then, reset the permissions for all files under the/etc/rc.d/init.d/directory, and run the following command:

# chmod -R 700 /etc/rc.d/init.d/*

This allows only root to read, write, or execute all of the above script files.

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.