[X-Unix] Is it possible to set unique umask for folder?

Simon Forster simon-lists at ldml.com
Wed Nov 24 04:25:42 PST 2004


We have some files being saved to a directory (by the Finder IIRC). 
These files have default permissions of 755 - which is Mac OS X's 
default from what I can gather. What we'd like is that files saved to 
this particular directory have universal read and write privileges 
(777). For fairly obvious reasons, we'd prefer not to change the system 
wide defaults, just the mode for this one directory.

Is this possible? Can one have a directory specific umask?

I can write a cron script to change permissions every 30 minutes. I 
imagine I can write a folder action script which'll run a chmod when 
something's added to the folder - and presumably I can write a shell 
(or Python) script to do a similar task. However, these options seem 
inelegant as they're fixing the problem after the event.

I've had a look around and have learnt a reasonable amount about 
permissions and umasks - but I haven't found a direct answer to this 
(simple) question.

TIA for any hints, tips and references.

Simon Forster
_____________________________________________________
  LDML Ltd, 62 Pall Mall, London, SW1Y 5HZ, UK
  Tel: +44 (0)70 9230 5244   Fax: +44 (0)70 9230 5247
_____________________________________________________



More information about the X-Unix mailing list