How to check password in linux

Release: 2019-12-26 10:58:05
Original
14156 people have browsed it

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template