Re: Allowing noschg in multi-user mode on Mac OS X

"Michael Maddex" <michaelm-a9faqb/[email protected]>
Newsgroups gmane.org.user-groups.nmlug
Message-ID <[email protected]>
Have you tried using the "sudo" command?  For example:

$ sudo chflags noschg test.txt

O'Reilly also has some books and tips for *nix users and
OS X.

http://www.oreillynet.com/pub/a/mac/2002/10/22/macforunix.html

HTH.

Kelly Jones wrote:

> Most FreeBSD kernels let you set a flag(?) to decide whether "chflags
> noschg" will work in multi-user mode.
> 
> How do I do this w/ Mac OS X? Here's what happens when I do "chflags
> noschg" in multi-user mode:
> 
> # chflags noschg test.txt
> chflags: test.txt: Operation not permitted
> 
> The opposite, "chflags schg", works fine. I realize this is a security
> feature (you can protect files in multi-user mode, but not vica
> versa), but it's annoying.
> 
> I also realize I can boot into single-user mode
> (http://docs.info.apple.com/article.html?artnum=106388) where "chflags
> noschg" works just fine, but I'd like to use noschg more as advisory
> protection from myself, not something that requires single-user mode
> to undo.
> 

-- 
Michael Maddex -- Instructor
Computer Science and Technology
Northern New Mexico College

"Talk is cheap.  Show me the code."
--Linus Torvalds
_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.