Basing new file permissions on current dir perms
From: Alex Malinovich (demonbane_at_the-love-shack.net)
Date: 01/09/04
- Previous message: Magnus Therning: "Re: sid kernel 2.6.0-1 kernel panic"
- Next in thread: Rob Sims: "Re: Basing new file permissions on current dir perms"
- Reply: Rob Sims: "Re: Basing new file permissions on current dir perms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- application/pgp-signature attachment: This is a digitally signed message part
- Previous message: Magnus Therning: "Re: sid kernel 2.6.0-1 kernel panic"
- Next in thread: Rob Sims: "Re: Basing new file permissions on current dir perms"
- Reply: Rob Sims: "Re: Basing new file permissions on current dir perms"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|