Originally posted by SecretCode
View Post
Originally posted by ardvark71
View Post
Code:
-G, --groups GROUP1[,GROUP2,...[,GROUPN]]] A list of supplementary groups which the user is also a member of. Each group is separated from the next by a comma, with no intervening whitespace. The groups are subject to the same restrictions as the group given with the -g option. [b]If the user is currently a member of a group which is not listed, the user will be removed from the group.[/b] This behaviour can be changed via the -a option, which appends the user to the current supplementary group list.
Code:
sudo usermod -aG vboxusers [i]yourusername[/i]
Code:
NAME adduser, addgroup - add a user or group to the system SYNOPSIS adduser [options] user group Add an existing user to an existing group If called with two non-option arguments, adduser will add an existing user to an existing group.
Code:
steve@x1:~$ [b]groups[/b] steve adm cdrom sudo audio dip video plugdev lpadmin sambashare admin
Comment