JP Vossen on 12 Nov 2011 11:54:25 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Finding a /etc/group entry containing a user list


On 11/12/2011 02:45 PM, David Coulson wrote:
Pretty sure if you just do 'usermod -aG group1,group2,blahblah username'
it'll add the user to any group they are currently not a member. No need
to figure out who is not a member of the group.

But the original point is, I don't know what group to use. I'm looking for the group that already contains the most members of my list, so that a) I don't need to create a new group and b) I need to add the fewest users to that group to that it contains everyone from my list.

Later,
JP
----------------------------|:::======|-------------------------------
JP Vossen, CISSP            |:::======|      http://bashcookbook.com/
My Account, My Opinions     |=========|      http://www.jpsdomain.org/
----------------------------|=========|-------------------------------
"Microsoft Tax" = the additional hardware & yearly fees for the add-on
software required to protect Windows from its own poorly designed and
implemented self, while the overhead incidentally flattens Moore's Law.
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug