In this tutorial, we will show you how to use the gpasswd command on a Linux operating system. You can use this command to alter a group’s settings, such as the password, members, and administrators. It is very useful when handling multiple groups.
Getting started with Linux? Try a Raspberry Pi!
The gpasswd command allows you to edit a group’s password, members, and administrators. It is used to edit both the
/etc/gshadow files. If you use the command without any options, it will prompt for a new password for the group.
Since a group password is often shared amongst multiple people, they are not considered very secure. However, they are a useful tool if elevated security is required.