WTH is a 'schg' flag?

Dan Shoop shoop at iwiring.net
Tue Dec 2 17:24:02 PST 2003


At 1:25 AM +0100 12/3/03, ocs wrote:
>Hi,
>
>trying to solve a friend's problem with an "undeletable" file I've 
>bumped into an "schg" HFS flag. The thing is described as "the 
>system immutable flag", which does not say much, at leaset to me.

It means the file is "immutable": that is can't be changed. (I'd 
expect, as all other have, that the word means what it says.)

>The best part is that I've found that, as a root, I can _set_ it, 
>but not _remove_ it?
>
>25 /tmp# touch qqq
>26 /tmp# chflags schg qqq
>27 /tmp# ls -lo qqq
>-rw-r--r--  1 root  wheel  schg 0  3 Dec 01:13 qqq
>28 /tmp# whoami
>root
>29 /tmp# chflags noschg qqq
>chflags: qqq: Operation not permitted
>30 /tmp#
>
>Can someone shed some light on that (and give me a clue how to get 
>rid of a schg-infected file or folder)?

RTFM: `man chflags`

Your issue is because you're not using the command properly. It's uchg.
-- 

-dhan

------------------------------------------------------------------------
Dan Shoop                                              shoop at iwiring.net
Consulting Internet Architect                              shoop at mac.com
AIM: iWiring

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring designs and supports Internet systems and networks based on
Mac OS X, unix(tm), and Open Source applications technologies and
offers 24x7, guaranteed support to registered clients. How can we help?




More information about the MacOSX-admin mailing list