Home  >  Article  >  Operation and Maintenance  >  How to check password in linux

How to check password in linux

尚
Original
2019-12-26 10:58:0514133browse

How to check password in linux

Linux account is recorded in the /etc/passwd file, and the password is saved in /etc/shadow

1. Open the terminal and enter head -3 / etc/passwd, press Enter to view the first three passwords.

How to check password in linux

#2. Enter cat /etc/shadow and press Enter. You can see all the users and passwords here (user passwords are encrypted and saved in the shadow file)

How to check password in linux

3. Enter ls -l /etc/passwd /etc/shadow to view the password permissions.

How to check password in linux

Recommended related articles and tutorials: linux tutorial

The above is the detailed content of How to check password in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn