How to permanently set permissions on all files created in a directory?
I have one directory in which I would like everyone in group "foo" to be have read & write permissions.
Is there a way to do that? I know I can "chmod -R g+rw dir", but that doesn't cover any new files created in that directory. I could set each user's umask, but that umasks the everything - not just the one directory. If it helps, the directory in question is an NFS mount (nfs does not have any sort of options that allow this to happen - at least to the best of my knowledge). ideas? Is there some way a sticky could help me? If so, how? |
The question is how you've set-up the NFS share ...
If you're all_squashing there's nothing you can do. If you're not, all you need is to make foo the default group of the users you want to read/write and have both the mountpoint and the exported directory owned by foo. Cheers, Tink |
Quote:
The way I understand it, in order to assign gid through nfs export is to force everyone to mount as anonymous & then map the anongid to foo. While this *does* work, it's a bit more heavy handed than I'd like - I'd rather the owner owned the file & show up when you long list. Am I understanding this wrong? Can you map all connections to a gid without mapping the uid? |
Code:
User ID Mapping to the internet ;}) ... but it works fine for me, my uid/gid is identical on both the nfs server and the local workstation. Cheers, Tink |
Quote:
|
Oic ... that's not possible, I'm afraid.
The only (ugly and not necessarily reliable) way of working around that would be to have a cron-job on the server run every minute and set the permissions ;) Cheers, Tink |
Quote:
oh well, I guess my users will have to deal with umask 002. ;) |
Well, you COULD modify the source for nfs daemon and
client to accept a umask as a parameter ;) Cheers, Tink |
Quote:
::grumble:: ;) |
All times are GMT -5. The time now is 06:49 PM. |