Current-Users archive

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

Re: Unbeatable directory leftover from python313 'make test'



ci4ic4 <ci4ic4%proton.me@localhost> writes:

[snip]

>> My first thought would be that one of the extended file flags is set.
>> Do a "ls -lo" and consult 'man chflags' to see if schg or uchg got set
>> somehow.
>
> I thought it was to do with the extended flags, but have forgotten about the 'o' flag  of /bin/ls and chflags. The directory has indeed the schg flag set, but resetting it does not work for some reason:
>
> # ls -lo
> total 4
> drwxr-xr-x  2 root  wheel  schg 512 Dec 16 21:06 @test_8921_tmpæ_SRC
> # chflags -R noschg .
> chflags: ./@test_8921_tmpæ_SRC: Permission denied
>
>
> Weird... 
>


Ya, a bit..  I just tested this on a test box with root user and a
directory in /var/tmp and was able to add and remove the schg flag and
was able to remove my testing directory.  Are you at some high
securelevel (sysctl kern.securelevel)??  One of them, forgot which, I
think restricts the reset of some of the flags.  The entire directory
tree up from the problem directory didn't get the schg flag set on it ...??





-- 
Brad Spencer - brad%anduin.eldar.org@localhost


Home | Main Index | Thread Index | Old Index