Ubuntu Security Settings guide and related tools

Source: Internet
Author: User
Article Title: Ubuntu Security Settings guide and related tools. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

If you are a new starter from Windows to Ubuntu, you will obviously feel the security performance of Ubuntu. At least you will not worry about the increasing spread of viruses. However, is Ubuntu as secure as the official saying? The answer is no.

The default installation mechanism of Ubuntu brings potential security problems, such as opening some backdoors by default and various bugs caused by new updates. This article will show you how to disable some insecure backdoors for Ubuntu and protect your system against the current Ubuntu vulnerability.

1. Modify the default settings

The following are three considered insecure settings:

1) Reconfigure the shared memory

Open the "/etc/fstab" file in a text editor and add the following statement to the file:

Tmpfs/dev/shm tmpfs ults, ro 0 0

2) disable ssh root Login

Open the "/etc/ssh/sshd_config" file in the text editor

PermitRootLogin yes

Change

PermitRootLogin no

3) restrict access to the "SU" program

Open the terminal and execute the following commands:

Sudo chown root: admin/bin/su sudo
Chmod 04750/bin/su

2. Enable automatic update

The Ubuntu Development Team regularly releases upgrade packages to help you fix System bugs and enhance security mechanisms. However, many may forget to update the system regularly. At this time, we 'd better enable automatic system updates. In this way, when a new update is available, the system will remind you to perform the upgrade.

Enable automatic update:

Choose system> Management> Software source, and enable automatic update check in the network Update tab.

3. Enhanced HOME Directory Security

The security of the HOME directory directly determines the security of user security files in the current system. You can enhance the security of the HOME directory in the following ways:

Open the terminal and execute commands

Chmod 0700/home/redbots.cn # Replace redbots.cn with your current system user name

4. install security software

Although Ubuntu is not vulnerable to viruses, we can install the following software to disable system backdoors and protect system vulnerabilities.

Grsecurity: Linux kernel protective cover

PaX: This software includes grsecurity and enhances the Ubuntu memory overflow protection.

Pro Police: IBM solutions to avoid stack overflow attacks.

DigSig: Helps you verify the integrity and security of your application through user-defined digital signatures.

[1] [2] [3] Next page

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.