Re: Users, groups and directory access

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

  • Next message: Matthew Miller: "Re: Users, groups and directory access"
    Date: Wed, 05 May 2004 15:27:14 +0200
    To: dave@webaugur.com, For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    David L Norris wrote:
    > # create proj group
    > groupadd proj
    >
    > # make an administrator own the root dir. paul.proj is also fine...
    > chown -R root.proj /project
    >
    > # make permissions inherit to children...
    > chmod g+rwxs /project
    >
    > # root can change john's group membership like this
    > usermod -G proj john
    >
    >
    > # which should be equivalent to this but I've had trouble with it
    > gpasswd -a john proj
    >
    > # in theory, this would make Paul proj's administrator
    > gpasswd -A paul proj
    >
    >
    > # to verify john was added where he belongs:
    > grep john /etc/groups
    >
    Hi David,

    Your answer did it: it works!

    However, because I had done both the usermod-thing and the
    gpasswd-thing, I'm not sure whether one or both work correctly: the
    logoff did it (I had to logoff from X though).

    Thanks for your instructive mail.
    Still not a sysadmin, but at least I start to understand groups.

    Guus.

    -- 
    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: Matthew Miller: "Re: Users, groups and directory access"

    Relevant Pages

    • Re: Users, groups and directory access
      ... I have a user let's say john with two gid's: one for john and one for ... I also have a directory owned by user paul and he want everyone in ... > group proj to be able to read and write and create directories and files ... Group membership only becomes effective at ...
      (Fedora)
    • 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: Users, groups and directory access
      ... As soon as john makes his primary group ... >>proj, it works. ... Is gpasswd the wrong utility here? ...
      (Fedora)
    • 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)