removing /var/empty on a non-system disk

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Sat May 26 06:04:35 UTC 2012


what ls -lod empty says?

On Fri, 25 May 2012, Gary Aitken wrote:

> On 05/25/12 14:38, Wojciech Puchar wrote:
>> chflags noschg is your friend.
>
> Not in this case.
> If you look at the commands attempted, that was already tried (line 282)
> Topmost login had to be as root.
>
>> On Fri, 25 May 2012, Gary Aitken wrote:
>>
>>> something I'm not seeing
>>>
>>> I've got a disk previously used as a sys disk I'm trying to clean up.
>>> What's the key to removing /var/empty?
>>>
>>> 280 /hd1/var#sysctl kern.securelevel
>>> kern.securelevel: -1
>>> 281 /hd1/var#ls -l
>>> total 4
>>> dr-xr-xr-x 2 root wheel 512 Jan 3 00:55 empty
>>> 282 /hd1/var#chflags noschg empty
>>> 283 /hd1/var#chmod 777 empty
>>> chmod: empty: Operation not permitted
>>> 284 /hd1/var#rmdir empty
>>> rmdir: empty: Operation not permitted
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>


More information about the freebsd-questions mailing list