Re: Maintaining group ownership of new files

From: Upayavira (uv_at_upaya.co.uk)
Date: 10/25/04

  • Next message: Sean: "Can we send attachments?"
    Date: Mon, 25 Oct 2004 07:09:06 +0100
    To: debian-user@lists.debian.org
    
    

    Eric Gaumer wrote:

    >On Mon, 2004-10-25 at 06:21 +0100, Upayavira wrote:
    >
    >
    >>Hi,
    >>
    >>I've used a freeBSD server where, when a file is created, that file
    >>becomes owned by the group who owns the containing folder.
    >>
    >>However, I cannot seem to make this happen on a Debian box. Anyone know how?
    >>
    >>Basically, I want to 'partition' a server using Unix groups. If a member
    >>of a group creates, uses modifies a file, that file is usable,
    >>modifiable, by other members of their group.
    >>
    >>I of course will be a member of all of these groups.
    >>
    >>Any ideas how to make this happen?
    >>
    >>Regards, Upayavira
    >>
    >>
    >If you setgid the directory, all files will inherit group ownership. So
    >just create the directory and give it group writable permissions (chmod
    >2770) and make sure you chown root.group the directory.
    >
    Fab - that bit works.

    >You'll probably
    >need to change the default umask as well
    >
    >
    How can I do that?

    >You could also go the ACL route if you're using 2.6. This will surely
    >give you the flexibility you need.
    >
    >
    I'm using Sarge at the mo. Dunno which Kernel I'm using. ACLs look
    interesting.

    Thanks for this.

    Upayavira

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Sean: "Can we send attachments?"

    Relevant Pages

    • Re: Maintaining group ownership of new files
      ... On Mon, 2004-10-25 at 06:21 +0100, Upayavira wrote: ... > I've used a freeBSD server where, when a file is created, that file ... > of a group creates, uses modifies a file, that file is usable, ... > I of course will be a member of all of these groups. ...
      (Debian-User)
    • Maintaining group ownership of new files
      ... I've used a freeBSD server where, when a file is created, that file ... becomes owned by the group who owns the containing folder. ... of a group creates, uses modifies a file, that file is usable, ... I of course will be a member of all of these groups. ...
      (Debian-User)
    • Re: Maintaining group ownership of new files
      ... >>I've used a freeBSD server where, when a file is created, that file ... I cannot seem to make this happen on a Debian box. ... >>member of a group creates, uses modifies a file, that file is usable, ... >>I of course will be a member of all of these groups. ...
      (Debian-User)
    • Re: Maintaining group ownership of new files
      ... chmod g+s DIR ... Upayavira wrote: ... :: I've used a freeBSD server where, when a file is created, that file ...
      (Debian-User)