[futurebasic] Re:Mac OS X Unix file permissions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2003 : Group Archive : Group : All Groups

From: MoorePrint@...
Date: Sun, 25 May 2003 14:39:22 -0400
In a message dated 5/25/2003 4:00:24 AM Eastern Standard Time, futurebasic-digest-help@... writes:

> 
> > Mac OS 10.2.6 enforces user, group, and guest file permissions on
> > carbon application users. If user "Bob" saves a file with a FB3 carbon
> > application, user "Ted" cannot change or delete it because  the
> > default is that only the owner has read and write permission.
> > How best to save files so other users can have write permission?
> 
> The demo below answers your question, with rather a lot of machinery.
> (We don't actually use UTCDateTime or HFSUniStr255, but 
> they are needed
> to complete the definitions).
> 
> Robert P.
>

Thanks for the example of getting and setting the file permissions. I was really wondering if there was a way to make the defulat permission read and write for both user and group and avoid setting htem each time. This is what the unix command "umask" seems to for. It just doesn't work to change the defulat permissions of files opened/created by fb3.

It seems you are suggesting that we set the file permissions everytime we make a new file. In that case, how would your technique compare to using the FB 3 unix capability to run "chmod"?

Bruce Moore