Linux server security risks and preventive measures-Linux Enterprise applications-Linux server application information. For details, refer to the following section. If your Linux server is exposed to unauthorized users (such as servers in public IDCs and public IDCs), there will be serious security risks.
Enter the system in Single User Mode
Boot appears after Linux is started: when prompted, use a special command, such as linuxsingle or linux 1, to enter Single-User mode ). This command is very useful, such as forgetting the root password. Restart the system and enter linux single (or linux 1) at the boot prompt. After a Super User enters the system, edit the Passwd file and remove x from the root line.
Countermeasure:
Log on to the system as the root user, edit the/etc/inittab file, change the id: 3: initdefault settings, and add an additional row (as shown below) to the file ), when the system restarts and enters the single-user mode, the system prompts you to enter the Super User Password: