Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ After installing minimize RHEL / CentOS 7 we need to do     - Getting Started with Linux system to learn: how to install autossh (Linux)

- Ubuntu 14.04 install the NVIDIA driver + CUDA + MATLAB (Linux)

- 64-bit Windows Server 2012 R2 install Oracle 10g Second Edition (Database)

- VMware virtual machine can not start VMnet0 no Internet access and other issues (Linux)

- ASP.NET 5 (vNext) Linux deployment (Server)

- The new features of MySQL 5.7 Generated Column (index function) (Database)

- Ubuntu 14.04 / 13.10 users how to install Ubuntu Touch core applications (Linux)

- Ubuntu apt-mirror established local private sources (Linux)

- KVM virtualization of nested virtualization (Linux)

- Java learning problems encountered (Programming)

- Thunderbird 24.4.2 has been released for use with PPA updates (Linux)

- Linux System Getting Started Tutorial: How to Force Change your password at next logon Linux (Linux)

- Five useful commands to manage file types and system time in linux (Linux)

- To use iostat display I / O status under Linux (Linux)

- Getting Started with Linux system to learn: how to get the process ID (PID) in the script (Linux)

- Use window.name + iframe cross-domain access to data Detailed (Programming)

- Oracle how to assess the true concurrent session (Database)

- Learning Linux coding style (Programming)

- Linux print file and send mail (Linux)

- Ubuntu arm-none-eabi-gcc compiler treated with STM32F10x (Linux)

  After installing minimize RHEL / CentOS 7 we need to do
  Add Date : 2017-01-08      
  Password protect GRUB

Password-protect your boot bootloader so you can get extra security at startup. You also can get the level of physical protection. By GRUB boot to lock to prevent any unauthorized access to protect your server.

First two backup files, so that if there are any errors, you can have the rollback option. Backup '/etc/grub2/grub.cfg' to '/etc/grub2/grub.cfg.old'.

# Cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg.old
Similarly, the backup '/etc/grub.d/10_linux' to '/etc/grub.d/10_linux.old'.

# Cp /etc/grub.d/10_linux /etc/grub.d/10_linux.old
Open the file '/etc/grub.d/10_linux' and add the following line at the end of the file.

cat << EOF
set superusers = "tecmint"
Password tecmint avi @ 123

Password protection Grub

Note that in the above document, using your own user name and password instead of "tecmint" and "avi @ 123".

Grub.cfg now generate a new file by running the following command.

# Grub2-mkconfig --output = / boot / grub2 / grub.cfg

Grub generated file

After creating grub.cfg file, restart the machine and hit 'e' to enter editing. You will find that it will ask you to enter the "effective verification" to edit the boot menu.

Boot password-protected menu

After entering the login authentication, you can edit the grub boot menu.

Grub menu file

You can also use an encrypted password in place of the previous step plaintext password. First, the following recommendations to generate an encryption password.

# Grub2-mkpasswd-pbkdf2
[Enter the password twice]

Generates an encrypted password Grub

Open '/etc/grub.d/10_linux' file and add the following line at the end of the file.

cat << EOF
set superusers = "tecmint"
Password_pbkdf2 tecmint
grub.pbkdf2.sha512 ... your encrypted password ...

Grub password encryption

With the generated password on the system you replace the original password, do not forget to cross-check the password.

Also note that in this case you will need to generate as grub.cfg like the one above. Reboot and hit 'e' into the editor, you will be prompted to enter a user name and password.

We've covered most of the industry's standard distribution RHEL and CentOS 7 7 install the necessary action. If you find we are missing a few points or you have something new to expand the article, you can share with us, we will expand by including your share in this article.
- Android Studio 1.0.2 set the memory size (Linux)
- After installing minimize RHEL / CentOS 7 need to do some things (Linux)
- Linux partition command (Linux)
- Oracle 11g RAC manually playing GI PSU patch ( (Database)
- Android Touch message passing mechanism analysis (Programming)
- How to remove the Linux memory Cache, Buffer and swap space (Linux)
- Install Ubuntu Software Center App Grid (Linux)
- VMware virtual machine operating system log Error in the RPC receive loop resolve (Linux)
- JDK installation and configuration environment variable under linuxb (Linux)
- ARP Linux-related operations (Linux)
- Several back door and log tool under Linux (Linux)
- Linux administrator should command: sed and awk (Linux)
- Hadoop 0.23 compile common errors (Server)
- Hadoop vs spark (Server)
- Hibernate learning introductory tutorial (Programming)
- Installation configuration CUDA under Ubuntu 14.04 (Linux)
- Beautiful start Ubuntu installation tool Duck Launcher 0.64.5 (Linux)
- CentOS 6.x and CentOS7 install MPlayer (Linux)
- Linux file system data file deletion problem space is not freed (Database)
- Install Mac OS X 10.9 systems VMware10 (Linux)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.