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: Deleting users at the end of the year



At 4:02 PM +0100 4/29/02, Simon Slavin wrote:
It could be considered a bug in the handling of HFS+ drives. In
fact I would submit it as a bug if the bug-submitting thing worked
for me.

OS X considers the attribute called 'locked' on HFS+ drives to be
more important than the override you normally get by being root.
Consequently, it won't let even root users delete a locked file
without unlocking it first.

this is no different than "locking" (setting the immutable flag) on any other OS (chattr +i on linux iirc).


It's not a Mac thing, in a functional sense- although the implementation seems to hfs + specific.


It's fairly easy to write an AppleScript which will unlock a file
and then delete it.

michaelb% sudo chflags -R nouchg ~/.Trashes

Before anyone starts to moan about using the command line- in 9, you'd have to get info on every file left over after deleting trash, unlock it, and delete again. You can still do that.

Or, as Simon mentioned, you could (and still can) write an AppleScript.

--
http://www.4am-media.com
Mac OS X Consulting and Training
Michael Bartosh
email@hidden
303.517.0272
Denver, CO


"The surest way to corrupt a youth is to instruct him to hold in higher
regard those who think alike than those who think differently."

- -- Nietzsche
Think Different.
_______________________________________________
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: Deleting users at the end of the year (From: Simon Slavin <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.