Develop Paper
  • Program
  • Server
  • Development Tool
  • Blockchain
  • Database
  • Artificial Intelligence
  • Blogs
Position: Home > Blogs > OS > Linux > Content

Operation method of prohibiting single user mode login under Linux operating system

Time:2022-6-18

If it is forbidden to enter a single user, first configure the password of grub, and only modify /boot/grub/grub Conf or /etc/grub Conf (/etc/grub.conf is a symbolic link to /boot/grub/grub.conf).

 

For example: VI /boot/grub/grub Conf enter the configuration file for editing In the next line of the splash image parameter, you can add password= password. After saving, restart the computer. When you log in to the grub menu page again, you will find that you can no longer directly use the e command to edit the startup tag. You must first use the P command and enter the correct password before you can edit the startup tag. However, weset upThe clear text password is not very secure.

 

If others get the plaintext password, they can still modify the grub startup tag to change the root password.

 

So we need to use MD5 to encrypt it. Enter grub-md5-crypt in the terminal and press entersystemYou will be asked to enter the same password twice, and thensystemMD5 code will be output. You only need to copy the generated MD5 ciphertext, and then follow the format of password –md5 MD5 ciphertextset upGlobal or menu password, save, exit and restart the computer.

Tags: md5, method, operating system, operation, Password, Pattern, Prohibit, Sign in, start-up, user

Recommended Today

Complete steps for the ultimate complete Oracle uninstall

catalogue 1、 Stop using Oracle services 2、 Open the universal installer tool to run the uninstall Oracle database program 3、 Enter the uninstall batch program to run the uninstall 4、 Delete Oracle related entries in the registry 5、 Delete Oracle environment variables 6、 Delete Oracle installation directory and files 1、 Stop using Oracle services Disable […]

  • Solutions to problems in UNIX uninstall GDB debugging tool
  • Shell script implements checking and killing child processes and zombie processes
  • Nginx practice case (source code compilation and installation method): build WordPress site with LNMP
  • Tutorial on using dupeguru to find and remove duplicate files on Linux systems
  • Oracle startup script sharing implemented by shell
  • The wonderful world of DBUS
  • Method of starting program in Linux terminal using background running mode
  • Installation and configuration of QQ software in Linux
  • Shell script implements ftok function
  • Description and use of uniq command in Linux operating system
Pre: Complete steps for the ultimate complete Oracle uninstall
No, it's the last article

    Tags

    address algorithm array assembly attribute Browser c Catalog Character string Client code command configuration file container data Database Definition Edition element Example file function java javascript Journal link linux Memory method Modular mysql node object page parameter php Plug-in unit project python Route source code The server Thread time user

    Recent Posts

    • Operation method of prohibiting single user mode login under Linux operating system
    • Complete steps for the ultimate complete Oracle uninstall
    • Python implementation of student management system (object-oriented version)
    • How to extract audio from video? Which is a good audio extraction tool
    • Using the string of golang to solve leetcode to flip the words in the string

    Recent Comments

    • China Gold on Answer for JS custom console Log doesn't understand it at all. Ask the great God
    • lanmao on Answer for JS custom console Log doesn't understand it at all. Ask the great God
    • Jeremy_young on Answer for JS custom console Log doesn't understand it at all. Ask the great God
    • lanmao on Answer for JS custom console Log doesn't understand it at all. Ask the great God
    • Jeremy_young on Answer for JS custom console Log doesn't understand it at all. Ask the great God

    Categories

    • .NET Core
    • Agile Development
    • Algorithm And Data Structure
    • Android
    • Apple MAC
    • Architecture Design
    • Artificial Intelligence
    • ASP.NET
    • Backend
    • Blockchain
    • C
    • C#
    • C++
    • Cloud
    • Database
    • Design Pattern
    • Development Tool
    • Embedded
    • Erlang
    • Freshman
    • Game
    • Golang
    • HTML/CSS
    • HTML5
    • Informal Essay
    • Information Security
    • IOS
    • Java
    • JavaScript
    • JSP
    • Linux
    • Lua
    • MongoDB
    • MsSql
    • MySql
    • Network Security
    • OOP
    • oracle
    • Other DB
    • Other Technologies
    • Other Technology
    • Perl
    • PHP
    • Program
    • Python
    • Redis
    • Regular Expression
    • Ruby
    • Rust
    • SAP
    • Server
    • Software Testing
    • Team Management
    • VBS
    • VUE
    • WEB Front End
    • Windows
    • XML/XSLT
  • java
  • php
  • python
  • linux
  • windows
  • android
  • ios
  • mysql
  • html
  • .net
  • github
  • node.js

Copyright © 2022 Develop Paper All Rights Reserved      Sitemap    About DevelopPaper    Privacy Policy    Contact Us