How to handle root user password locking in Linux?

Reported answer
How to handle root user password locking in Linux?
Ask online customer service
Scan the code to ask online customer service
  • Number of answers

    seven

  • Number of browses

    6,630

7 answers Default sorting
  • Default sorting
  • Sort by time

Adopted
There are two ways to cancel the root password. One is to use the passwd command with the - d parameter to delete the password. Usage example: $passwd - d root The other is to edit the/etc/shadow file directly. The/etc/shadow file stores the passwords of each user in an encrypted form. If the password is empty, you are not allowed to log in with a password. Usage example: $sudo nano/etc/shadow Delete the content between the first and second colons in the root line
cancel comment
There is no limit for ordinary users. You can set up an account, but you must have a password. You can use ssh or telnet to log in, provided that you have opened the ssh or telnet service.
cancel comment
No~, different terminals
cancel comment
Thanks. It's solved. It's the file I recovered. vsftpd.conf is not executed in the/VSFTPD/directory. vsftpd.backup.conf is the first file executed
cancel comment
Show your operation sequence and instructions and analyze them.
cancel comment
The root does not need to be set. If it is not set, it is an empty password.
cancel comment
Root is installed by default, so it does not need to be set
cancel comment
ZOL Q&A > Intelligent door control > system > How to handle root user password locking in Linux?

report

Thank you for contributing to the harmony of the community. Please select the type of report

Reported successfully

It will be handled after verification
Thank you for your contribution to community harmony

Scan the code to participate in the trial of new products at 0 yuan
You can get the sheets and grand gifts on the top floor

 Scan and pay attention to us
Tips

Are you sure you want to cancel this registration and exit this activity?