Grub Password and user permissions for CentOS System Security

Source: Internet
Author: User
Tags crypt

Grub Password and user permissions for CentOS System Security

1. Add the grub Password in linux

. Use the grub-md5-crypt command to generate the encrypted MD5 code

Grub-md5-crypt>/boot/grub. conf

Enter the password twice in the blank space and press Enter.

Vim/boot/grub. conf

Copy the generated password to the timeout downstream.

Add password -- md5 _ before the password _

Save and exit.

Ii. Set the automatic logout time for linux Users

Add a line to/etc/profile:

Export TMOUT = 60 // This is in seconds. That is, if the user does not perform any operation within 60 seconds, it is automatically logged out.

Source/etc/profile // make the previous step take effect

After this setting, users in the system will log out automatically within one minute after logging on to linux.

Related Article

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.