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