Grpconv command
User and Workgroup Management
The grpconv command is used to turn on the group's projection password. The user and group passwords in the Linux system are stored in /etc
the passwd and group files in the directory. As the system works, anyone can read them, creating a security flaw. The projection password changes the password within the file to the /etc
shadow and Gshadow files in the directory, allowing the System Manager to read only and replace the original password with the "x" character. The function of the projection password can be turned on or off at any time, you can turn on the group projection password simply by executing the grpconv instruction.
Grammar
Grpconv
Instance
Set Cdy Group password
--password 123456 Cdy/etc/group | cdycdy:123456:1000://See the password is 123456
Start Shadow Subsystem
Grpconvcat/etc/group | grep cdycdy:x:1000://See the password segment has been replaced by x Cat/etc/gshadow | grep cdycdy:123456:://moved to shadow file
Note: Gshadow, shadow can only be viewed with root privileges.
====================================================================
Pwconv command
User and Workgroup Management
The pwconv command is used to turn on the user's projection password. The user and group passwords in the Linux system are stored in files named passwd and group, and these two files are located in a /etc
directory. As the system works, anyone can read them, creating a security flaw. The projection password changes the password within the file to the /etc
shadow and Gshadow files in the directory, only allows the System Manager to read, and replaces the original password with the "X" character, which effectively strengthens the security of the system.
Grammar
Pwconv
Instance
/etc/passwd | Test:x:3001:3001::/home/test:/bin/sh
You can now see that the password segment is X
Cat/etc/shadow | grep testtest:$6$nyoewamm$bz07nlv/. Rgjufb3faqjjeulfwybzgxmrwqbk7o4vi0kst6n.ujrh6ddiucajdfjksyuyafdpingzed3cgcf.0:15022:0:99999:7:::
Pwunconv command
User and Workgroup Management
The pwunconv command , in contrast to the pwconv function, is used to turn off the user's projection password. It will return the password from within the shadow file and back to the passwd file.
Grammar
Pwunconv
Instance
Pwunconv//Turn off shadow password/etc/passwd | The discovery password has been test:$6$nyoewamm$bz07nlv/in the passwd file. Rgjufb3faqjjeulfwybzgxmrwqbk7o4vi0kst6n.ujrh6ddiucajdfjksyuyafdpingzed3cgcf.0:3001:3001::/home/test:/bin/sh/ Etc/shadow//View shadow file, prompt without this file or directory Ls:cannot access/etc/shadow:no such or directory
This article is from "Xiao Bao Bao" blog, please be sure to keep this source http://gongxiaoyi.blog.51cto.com/7325139/1682576
Grpconv/pwconv/pwunconv