Re: File Sharing (again - sorry, Pd)
- From: dempson@xxxxxxxxxxxxx (David Empson)
- Date: Fri, 5 Jun 2009 12:11:08 +1200
Simon Higgs <devnull@xxxxxxxxxxxxxxxxxxx> wrote:
Martin S Taylor <mst@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
What's the state of the art on this? I've spent an afternoon tinkering with
Batchmod, permissions, File Sharing, Groups and
lord-I-don't-know-what-and-all....
This has just appeared on Mac OSX Hints...
<http://www.macosxhints.com/article.php?story=20090219133314985>
Thanks for the link, and it referenced a GUI application for
manipulating ACLs (Sandbox), but unfortunately its user interface is
rather primitive and it only lets you see and modify ACLs for folders,
not files.
Unfortunately the use of inherited ACLs isn't a perfect solution. I
already tried that a week ago and found that several applications didn't
play nice.
The specific problem is that some applications save new documents by
creating them in a temporary folder, then move them into the folder
specified by the user.
A file moved into a folder doesn't inherit the ACL from the folder. You
have to copy the file into the folder (or create it there) to inherit
the ACL.
This means that documents saved by some applications won't have the ACL,
unless you go through some extra steps to make sure it is added. The
affected documents can only be modified by the person who created them.
I've just tried it again with a few word processors and text editors,
and made the following observations:
1. Documents created in the folder with a very simple method like
'touch' inherit the group and ACL from the folder.
2. Moving a file into the folder (with Finder or 'mv') doesn't add the
ACL.
3. Copying or duplicating a file into the folder (with Finder or 'cp')
does add the ACL (if it didn't already have the ACL).
4. BBEdit and Microsoft Word v.X: OK. New documents saved in the folder
have an ACL, and the same group as the folder. Edited documents preserve
their existing ACL and group.
5. TextEdit: newly saved documents don't have an ACL, but the ACL is
preserved when editing an existing document (using "Save", not "Save
As"). Anything created or edited by TextEdit has the default group for
the user rather than the group of the folder.
6. Pages '09: behaves like TextEdit when creating or editing ".pages"
documents (in the default single file compressed format - I haven't
tried the package format). For exporting other document types (Word, RTF
or Text), Pages '09 behaves like BBEdit.
Assuming other applications behave similarly to the patterns of either
BBEdit or TextEdit, this means that you need to be aware of which
applications don't correctly set up the ACLs.
When you create a new document with one of those applications, save it
somewhere else and use Finder to COPY it into the ACL-tagged folder,
which will add the ACL. (You could also use Finder to duplicate a file
already in that folder, then delete the original.)
Once a file has the ACL it should keep it, unless you do a "Save As"
with one of the miscreant applications.
Further testing is needed with more complex applications like iTunes and
iPhoto to see how they behave. Each type of file created by an
application might behave differently, depending on whether the
application uses a temporary folder when saving that type of file.
--
David Empson
dempson@xxxxxxxxxxxxx
.
- Follow-Ups:
- Re: File Sharing (again - sorry, Pd)
- From: Martin S Taylor
- Re: File Sharing (again - sorry, Pd)
- From: Jaimie Vandenbergh
- Re: File Sharing (again - sorry, Pd)
- References:
- Re: File Sharing (again - sorry, Pd)
- From: Simon Higgs
- Re: File Sharing (again - sorry, Pd)
- Prev by Date: Re: Mouse reviews
- Next by Date: Re: [OT] camcorders
- Previous by thread: Re: File Sharing (again - sorry, Pd)
- Next by thread: Re: File Sharing (again - sorry, Pd)
- Index(es):
Relevant Pages
|
Loading