Subject: Re: undoing chflags schg ?
To: Andrew Brown <codewarrior@daemon.org>
From: Thomas Boroske <y0001006@ws.rz.tu-bs.de>
List: netbsd-help
Date: 04/17/1997 03:27:30
In message <199704161744.NAA06206@untraceable.net> you wrote:

> >I probably did a stupid thing: I did "chflags schg /netbsd". Now 
> >I can't move or delete that file. 
> 
> oops...he heh!  :)
> 
> >The question: How do I undo the above operation, if I try
> >"chflags noschg /netbsd" I simply get "Permission denied", 
> >with rm it's the same.
> 
> kill -1 1 (to tell init to take you back to single-user/securelevel 0)
> and then you can remove the flag.

Thanks a lot, I'll try that. I already tried a single-user *startup*, 
but that only mounts the filesystem read-only (hmm).
My Unix book (unfortunately about SVR4) says you can use shutdown 
to switch security level, but the BSD one doesn't support this.

Thanks again.

BTW: Is chflags schg MEANT to be irreversible in normal (root) mode ?

-- 
Thomas Boroske