RE: How can Safari write Bookmarks.plist without permission?
RE: How can Safari write Bookmarks.plist without permission?
- Subject: RE: How can Safari write Bookmarks.plist without permission?
- From: Jeff Laing <email@hidden>
- Date: Fri, 27 May 2005 14:00:53 +1000
> While troubleshooting a problem for a user tonight, I changed the
> permissions of my Safari's bookmarks file:
>
> ~/Library/Safari/Bookmarks.plist
>
> to "You can read only". I then opened the file with Property
> List Editor,
> changed a value, clicked "Save" and, as expected, I got a
> dialog saying that
> it could not be saved because I did not have permission, etc.
This will be because the Property List editor writes directly to the file.
> I then launched Safari, added a bookmark, moved bookmarks
> around, and got no complaints.
This will be because Safari write a new file, closes it, unlinks the
original, and renames the copy.
Common permissions misunderstanding - read-only permission on a file does
not prevent you deleting it, it prevents you from writing to it. Read-only
permission on a DIRECTORY stops you from creating/renaming files inside it.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden