Groups: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 10: Line 10:


   usermod -a -G ''group'' ''username''
   usermod -a -G ''group'' ''username''
== Create a new group ==
  sudo groupadd ''mynewgroup''


== Links ==
== Links ==

Revision as of 10:26, 22 April 2020

 groups - print the groups a user is in

Operating systems such as Linux, and Mac OS, (and Windows 10???) have a notion of groups to manage collaboration of the users of the system.

Related linux commands:

  • chgrp

Add an Existing User Account to a Group

 usermod -a -G group username

Create a new group

 sudo groupadd mynewgroup

Links