Re: New Folder Needs Password
Re: New Folder Needs Password
- Subject: Re: New Folder Needs Password
- From: Luther Fuller <email@hidden>
- Date: Thu, 10 Dec 2009 13:03:49 -0600
The culprit here is the "ignore ownership" checkbox on a volume.
After trying lots of code that does not work, I finally decided to do this ... 1. User responds to choose folder and can create new folders 2. Create a new sparsebundle file in the chosen folder 3. Mount the sparsebundle's disk 4. Create a new folder in the disk 5. Unmount the disk 6. Do tell application "Finder" set everyones privileges of imageFileAlias to none set group privileges of imageFileAlias to none end tell
If the disk's "ignore ownership" is UNCHECKED, then this works as desired. I no longer get the request for an admin password in step 4. (I can't explain this.) And the sparsebundle file cannot be opened by another user unless the privileges are changed via an admin password.
If the disk's "ignore ownership" is CHECKED, however, then the owner of the sparsebundle file is always shown as the current user. (This seems odd.) Anyone can mount the sparsebundle's disk. I'm not sure if this is correct behavior or not. It may be, but it still seems odd.
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden