Re: Users, groups and directory access
From: A.J. Bonnema (abonnema_at_xs4all.nl)
Date: 05/05/04
- Previous message: Brian Hankins: "Re: rpm upgrades segfaulting FC1"
- In reply to: Matthew Miller: "Re: Users, groups and directory access"
- Next in thread: Matthew Miller: "Re: Users, groups and directory access"
- Reply: Matthew Miller: "Re: Users, groups and directory access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 05 May 2004 15:31:15 +0200 To: For users of Fedora Core releases <fedora-list@redhat.com>
Matthew Miller wrote:
> 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.
Do you mean, only one group will result from this command? I mean, will
the primary group be replaced too? I executed this command and after
groups I got: john, as the only group. After logoff/logon I got: john
proj, as the groups output.
However, I'll do some experiments on a fake user to try this one out.
>
>
>
>
>>>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.
>
Then I wonder what the use of a primary group is: is there any
preference in the system for the primary group? In what circomstance?
Guus -- never too late to learn --
-- A.J. Bonnema, Leiden The Netherlands, user #328198 (Linux Counter http://counter.li.org) -- fedora-list mailing list fedora-list@redhat.com To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
- Previous message: Brian Hankins: "Re: rpm upgrades segfaulting FC1"
- In reply to: Matthew Miller: "Re: Users, groups and directory access"
- Next in thread: Matthew Miller: "Re: Users, groups and directory access"
- Reply: Matthew Miller: "Re: Users, groups and directory access"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|