Open In App

grpconv command in Linux with examples

grpconv command is used to convert to shadow groups. The grpconv command creates a gshadow from the group and an optionally existing gshadow. Each program acquires the necessary locks before the conversion. pwconv and grpconv command are same. First of all entries in the shadowed file which don’t exist in the main file are removed. Then, the shadowed entries which don’t have the ‘x’ as the password in the main file are being updated. Any of the missing shadowed entries are then added. Finally, the passwords in the main file are being replaced with ‘x’. These programs can be used for the initial conversion as well as to update the shadowed file if the main file is then edited by hand.

Options: The options which apply to the pwconv, pwunconv, grpconv, and grpunconv commands are mentioned below:



Bugs: The errors in the password or group files (like an invalid or duplicate entry) can cause these programs to loop forever or may fail in other strange ways. Please run pwck and grpck to correct any of such errors before converting it to or from shadow passwords or groups.

Configuration:



Article Tags :