Users, groups and directory access

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

  • Next message: Rodolfo J. Paiz: "Re: Need help (of course) setting up network"
    Date: Wed, 05 May 2004 06:52:39 +0200
    To: fedora-list@redhat.com
    
    

    Hi,

    I have a simple access I would like to solve. Reading the RedHat
    documentation on users and groups didn't help sufficiently. Maybe one of
    you guys, sysadmins, could help?

    I'm running a up to date Fedora core 1 (no test packages).

    The problem is:

    1. I have a user let's say john with two gid's: one for john and one for
      proj. The group john is his primary group.

    2. 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
    in his directory /project. So (using the reference guide from red hat)
    he creates a directory /project and has the admin do the following
    sequence of commands:

    /usr/sbin/groupadd proj
    chown -R paul.proj /project
    /usr/bin/gpasswd -a john proj
    chmod 2775 /project

    {from chapter 6.4.1 Group Directories of the redhat ref. guide]

    Stil, as long as proj is not the primary group of john, he is not able
    to create directories or files. As soon as john makes his primary group
    proj, it works.

    Now I have 2 questions:
    1.
    Is there any way, to have all groups a user is member of, effective
    simultaneously?
    2.
    How can john change his primary group on the commandline?

    I appologize for not knowing (or being able to find) these simple
    answers on my own.....

    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: Rodolfo J. Paiz: "Re: Need help (of course) setting up network"

    Relevant Pages

    • 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: 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
      ... 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)
    • Re: Alternate Window Manager Selection
      ... On Saturday 03 January 2004 00:53, Krautkramer, John wrote: ... > I'm experimenting with other window managers in RedHat 9.0 such as ... > Enlightenment, etc. I'd like to add them to the 'Session' selection list at ... Stuart Sears RHCE, RHCX ...
      (RedHat)
    • Re: Users, groups and directory access
      ... only one group will result from this command? ... john, as the only group. ... Then I wonder what the use of a primary group is: ...
      (Fedora)