In Linux, the pwconv command is used for providing the shadow passwords. Shadow passwords are given for better system security. This command creates the file /etc/shadow and changes all passwords to ‘x’ in the /etc/passwd file.
First, the entries in the shadowed file, which don't exist in the main file, are removed. Then, the shadowed entries that don't have 'x' as the password in the main file are updated. Any missing shadowed entries are also added. Finally, passwords in the main file are replaced with 'x'. These programs can be used for initial conversion as well to update the shadowed file if the main file is edited by hand.
Get certified from the top Linux Course in Singapore now!