How do I know if my Linux root is locked?

Nguyễn Pháp

New member
How do I know if my Linux root is locked?
Answer
Check Lock Status of Root Account
  1. To know if your root account is locked or not, you can either check the “/etc/shadow” file or use the passwd command with the “-S” option.
  2. In order to know if the root account is locked or not, look for an exclamation mark in the field that should contain the encrypted password.
 

Tìm kiếm

Back
Top