Basing new file permissions on current dir perms

From: Alex Malinovich (demonbane_at_the-love-shack.net)
Date: 01/09/04

  • Next message: Dave Howorth: "Re: mozilla lockup [SOLVED]"
    To: debuser <debian-user@lists.debian.org>
    Date: Fri, 09 Jan 2004 06:06:26 -0600
    
    
    

    This seems like it should be simple enough, yet it's not working that
    way. Here's essentially what I want to do:

    Lets say I have a directory called mydirectory. The permissions are as
    follows:

    drwxrwxr-x root mygroup

    If a user who is part of mygroup, say myuser, creates a new file within
    mydirectory, the permissions of the file end up being:

    -rw-r--r-- myuser myuser

    What I want, is a way to force the default permissions for new files in
    this directory to be:

    -rw-rw-r-- myuser mygroup

    This is meant to be a shared directory with shared files. Unfortunately,
    while it's easy enough to create a shared directory, creating shared
    files in it by default doesn't seem to be nearly as easy. I set up a
    shared directory for myself and my roommates to use, but they are very
    lazy about resetting the permissions on files they add, so I end up
    being unable to modify them (without going in as root). It would be
    really nice to be able to automatically set the permissions to the
    correct values whenever they create a file. Any help is greatly
    appreciated.

    -- 
    Alex Malinovich
    Support Free Software, delete your Windows partition TODAY!
    Encrypted mail preferred. You can get my public key from any of the
    pgp.net keyservers. Key ID: A6D24837
    
    

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


  • Next message: Dave Howorth: "Re: mozilla lockup [SOLVED]"

    Relevant Pages

    • Re: Users cant log in to sharted directory
      ... is a security issue as well, as the network is at a school for disruptive ... Apologies if this is going over old ground, but this server admin stuff is ... The shared directory has ... Permissions for the users directories is set as user/Administrator/full ...
      (microsoft.public.win2000.networking)
    • Re: Where do I go from here?
      ... The Shared directory on the Vista machine is displayed on the RO screen, ... permissions for the shared directory on the Vista machine, and I, The ... and stubbornly refuses to play ball. ...
      (comp.sys.acorn.networking)
    • Re: Users cant log in to sharted directory
      ... There are two sets of permissions: ... The individual users directorys are full use for user/administrator. ... Apologies if this is going over old ground, but this server admin stuff ... The shared directory has ...
      (microsoft.public.win2000.networking)
    • Re: Retain permissions
      ... I need to move a large shared directory which contains multiple shared ... directories from one server to another and retain all shares and ... then import it on the new server. ... Both commands have a switch to copy permissions. ...
      (microsoft.public.win2000.general)
    • Re: [Algorythm] Read-write on a shared file
      ... Let say this hacker will try to sniff the ... > there may be a separate file for permissions). ... > because all communications will be SSL encrypted. ... > hacker cannot get) and the public key of the receiver. ...
      (comp.os.linux.misc)