NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Files I cannot delete/chown/chmod as root?



yancm%sdf.org@localhost wrote:

> I thought this would be trivial once I knew these flags existed, but my
> system is not letting me change the flags on these files?
> 
> # ls -laso
> total 6
> 2 drwxrwxrwx  3 root  wheel    -    512 May 18 09:39 ./
> 2 drwxrwxrwx  4 root  wheel    -    512 May 18 09:50 ../
> 2 drwxr-xr-x  2 root  privoxy  schg 512 May 18 09:39 @test_26381_tmp_SRC/
> # chflags noschg @test_26381_tmp_SRC
> chflags: @test_26381_tmp_SRC: Permission denied
> chflags: @test_26381_tmp_SRC: Permission denied
> 
> More ideas?

You're probably running at securelevel >= 1.

sysctl kern.securelevel

See secmodel_securelevel(9).

You'd have to drop/boot into single-user mode to
unset.

-Jan


Home | Main Index | Thread Index | Old Index