Re: Users, groups and directory access

From: A.J. Bonnema (abonnema_at_xs4all.nl)
Date: 05/05/04

  • Next message: mailing-lists_at_dragoneyedesign.net: "Re: Fedora core 1 install problem (correction)"
    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
    

  • Next message: mailing-lists_at_dragoneyedesign.net: "Re: Fedora core 1 install problem (correction)"

    Relevant Pages

    • Users, groups and directory access
      ... Reading the RedHat ... I have a user let's say john with two gid's: one for john and one for ... group proj to be able to read and write and create directories and files ... Stil, as long as proj is not the primary group of john, he is not able ...
      (Fedora)
    • Re: A question on security
      ... My id is also set in yast as being a member of webx. ... > use the 'newgrp' command to change your primary group. ... that I have to issue the newgrp command to switch me to have a new ...
      (alt.os.linux.suse)
    • Re: Users, groups and directory access
      ... > Stil, as long as proj is not the primary group of john, he is not able ... As soon as john makes his primary group ... > proj, it works. ...
      (Fedora)
    • Re: default group ownership of a file
      ... All users have a primary group membership as well as any number of secondary group memberships. ... You can change the group membership of a user with the /usr/sbin/usermod command. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: chmod question
      ... Referring to the 'chmod' command, how can you tell who is in your 'group'? ... Can you set that somehow? ... > grep staff /etc/passwd ... that list that group as some user's primary group plus ...
      (comp.unix.solaris)