Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: file permissions [interesting]



On Wednesday, July 31, 2002, at 06:41 PM, Michael G. Schabert wrote:

This is normal behavior....If you do not have write permissions to the directory, you can not write, modify or delete a file (no matter its permissions) from this directory.

That is a bummer, this is not the behavior of other forms of *NIX.

Actually, that's not entirely true.

The problem stems from the definition of write perms of a file/directory, and what *exactly* happens when a program saves a current file.

Many (most) programs do not update a file. They write a new temp file, delete the old file, then move/rename the temp file to replace the original.

Interesting, openBSD does not behave this way and that is what I am most familiar with. Regardless I guess the workaround is to create a directory to store that single file in.

If you cannot write to the directory, then this will fail no matter what unix you're using.

Mike
-- Bikers don't *DO* taglines.


--will
_______________________________________________
macos-x-server mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macos-x-server
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: file permissions [interesting] (From: "Michael G. Schabert" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.