On Mon, Mar 27, 2006 at 03:00:23PM +1100, Phill O'Flynn wrote: > > Basically, all i am trying to do is to set the file permissions of any new > file/sub directory directory created in a shared directory so that the > owner and group had full read/write access by default and others had no > access. I was under the impression that umask did this
No unfortunately. I think that would be a rocking idea though, it's one I've had myself; 'umask' could be a property of the directory and be inherited by new subdirs (like group ownership now, if the the directory is setgid) For your scheme to work, you need to ensure that all processes writing to that dir have a umask of the form 00x (002 or 007). But ... good news: Luckily, 002 is the default under linux. (sensible distros anyway) To get the result you want just make some parent directory drwxrwx--- should be enough, as any 'other' won't be able to descend below that, giving all subdirs effectively no 'other' access. Matt -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
