4 answers
groupadd will create a user group for you.
Its syntax is: groupadd toto
This command will create the group toto. To verify that this is the case, check if this group has been listed in the file /etc/group with this command:
cat /etc/group | grep toto
You should normally see the group as well as the users in it (none for now)
To add a user to a group, the simplest solution will be to add their name at the end of this line, separated by semicolons if you have multiple.
Otherwise, you can use the usermod command to modify a user's groups
--
Sharing is caring^^
Its syntax is: groupadd toto
This command will create the group toto. To verify that this is the case, check if this group has been listed in the file /etc/group with this command:
cat /etc/group | grep toto
You should normally see the group as well as the users in it (none for now)
To add a user to a group, the simplest solution will be to add their name at the end of this line, separated by semicolons if you have multiple.
Otherwise, you can use the usermod command to modify a user's groups
--
Sharing is caring^^
application
accessory
terminal
type "su"
enter the administrator password
then groupadd groupname
to add a group
accessory
terminal
type "su"
enter the administrator password
then groupadd groupname
to add a group