pwconv

The projection password used to enable the user

Supplementary instructions

pwconv command is used to enable the user's projection password. User and group passwords in the Linux system are stored in files named passwd and group respectively. These two files are located in the /etc directory. Because they are required for system operation, anyone can read them, causing a security breach. Projection password changes the password in the file to the shadow and gshadow files in the /etc directory, allowing only the system administrator to read it. At the same time, the original password is replaced with the "x" character, which effectively strengthens the security of the system.

grammar

pwconv

Example

cat /etc/passwd | grep test
test❌3001:3001::/home/test:/bin/sh

At this point you can find that the password segment is x

cat /etc/shadow | grep test
test:$6$nYOEWamm$bz07nlv/.RgJufb3FAqJJeULfwybzgxmrWqbk7O4vI0KsT6N.ujrh6dDIUcAJdfjksyuyAFDPIngZeD3cgcf.0:15022:0:99999:7:::