Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
this is really a newbie question, but how do I add a user to a new group? For example, I have this user account "john" that is already part of the following groups:
users adm audio wheel
now, I need to add him into the group "video". But if I use "usermod -G", I need to retype all the existing groups. Is there an easier way to just add the new group on top of the existing one? Thanks.
-G 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. If the user is currently a member of
a group which is not listed, the user will be removed from the group.
This behaviour can be changed via -a option, which appends user to
the current supplementary group list.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.