Users, groups and directory access
Matthew Miller
mattdm at mattdm.org
Wed May 5 13:26:00 UTC 2004
On Wed, May 05, 2004 at 03:30:07AM -0500, David L Norris wrote:
> # root can change john's group membership like this
> usermod -G proj john
This is bad because it *replaces* the current list of groups. If john was
previously a member of 'staff' or 'proj2', that would be removed. This is
why gpasswd -a is usually better.
> > How can john change his primary group on the commandline?
> newgrp proj
But this is basically obsolete -- there's almost never a reason to do this.
--
Matthew Miller mattdm at mattdm.org <http://www.mattdm.org/>
Boston University Linux ------> <http://linux.bu.edu/>
More information about the fedora-list
mailing list