[launchd-dev] launchd and watchpath

Don Montalvo donmontalvo at mac.com
Mon Jun 9 12:26:43 PDT 2008


Dave, thanks for the feedback. I'll go the ACL route.

Don

On Jun 9, 2008, at 1:11 PM, Dave Zarzycki wrote:

> Don,
>
> What you are proposing is inherently fragile due to race conditions.  
> Please pursue the ACL option further if you care about reliability.  
> Thanks!
>
> davez
>
>
> On Jun 8, 2008, at 5:14 PM, Don Montalvo wrote:
>
>> Of course I meant "Instead of ACL's"
>>
>> -Don
>>
>> Date: Sun, 08 Jun 2008 10:07:33 -0400
>>> From: Don Montalvo <donmontalvo at mac.com>
>>> Subject: [launchd-dev] launchd and watchpath
>>> To: launchd-dev at lists.macosforge.org
>>> Message-ID: <41D7B3A5-6EAC-4647-8ACB-D2378ABD170C at mac.com>
>>> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>>>
>>> We would like to set up a folder on our Macs that forces incoming
>>> files/folders to inherit permissions. Instead of ADL's, we'd like to
>>> use launchd (and watchpath). I'm not familiar with launchd, so I  
>>> think
>>> this would be a good way to get my feet wet.
>>>
>>> The shared folder would be:
>>>
>>> 	/Users/Shared/WORK
>>>
>>> Each user would have an alias to it on their Desktop (created via
>>> logout hook):
>>>
>>> 	~/Desktop/WORK
>>>
>>> How can I set up launchd to watch this folder and ensure the  
>>> contents
>>> are always set to 777? I don't have experience with launchd. I toyed
>>> with it in early Tiger days but there were issues with user  
>>> launchd so
>>> I gave it up and stuck with cron. I understand launchd works as
>>> advertised on Leopard. Hoping it can help with this little  
>>> project. :)
>>>
>>> Thanks,
>>> Don
>> _______________________________________________
>> launchd-dev mailing list
>> launchd-dev at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/launchd-dev
>



More information about the launchd-dev mailing list