New users and students learning how to use Linux should start on Ubuntu Linux OS. Ubuntu is an open-source Linux operating system that runs on desktops, laptops, servers, and other devices. When you’re ready to learn how to use the gpasswd commands, follow the guide below: About gpasswd command: The gpasswd command is used to administer /etc/group and /etc/gshadow files. Like using your mouse and keyboard to manage users and groups, the gpasswd is the way to do it on the command line. The /etc/group file contains group information and the /etc/gshadow file contains encrypted groups into. The following configuration variables in /etc/login.defs change the behavior of gpasswd . Edit that file to configure other settings. Syntax: The syntax is the rule and format of how the gpasswd command can be used. the syntax can options can be reordered. but a straight format must be followed.,. Below is an example syntax of how to use the gpasswd command. Options: The command line options are switches or flags that determined how the commands are executed or controlled. they modify the behavior of the command. they are separated by spaces and followed after the commands options. Below are some options for the gpasswd command: Examples: Below are some examples of how to run and use the gpasswd on Ubuntu Linux. If you want to add a user name John to the group called Players, run the commands below. To give John administrative rights to manage the Player’s group, and run the commands. The commands above make John an admin of the player’s group. If you’re not logged in as a root account, you may have to use the sudo command it it. To remove John’s account from the group, run the commands below. When you run gpasswd with the –help option, you’ll see the help text below: That’s it! Hope you like it and please come back soon for more Ubuntu Linux commands! You may also like the commands below: