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: undeletable and immutable, even with root access, files




On Tuesday, January 31, 2006, at 08:00 pm, Gary Hoo wrote:

See the man pages for chflags(1) and chflags(2) for info on file flags. Briefly, yes, you can make a file persistently append-only and otherwise immutable even by root. Such files can only be removed when the system is in single-user mode. I'm not sure how far back OS X supports these flags, but chflags is available at least from Panther (10.3).

Bear in mind that protecting log files in this way could make for interesting side effects. For example, cron scripts that rotate such log files will likely fail.

/gh

excellent -- thanks for the info.

ben.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Apple-cdsa mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/apple-cdsa/email@hidden

This email sent to email@hidden
References: 
 >Re: undeletable and immutable, even with root access, files (From: Gary Hoo <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.