Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 1996 11:41:02 +0000 (GMT)
From:      Gabor Zahemszky <zgabor@CoDe.hu>
To:        freebsd-questions@freebsd.org
Cc:        graphix@iastate.edu
Subject:   Re: Removing files
Message-ID:  <199607301141.LAA01801@CoDe.CoDe.hu>
In-Reply-To: <9607270855.AA13169@spiff.cc.iastate.edu> from "Kent Vander Velden" at Jul 27, 96 03:55:35 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
>   How can I remove the following files?
> 
> pseudo: {722} ls -l /usr/lost+found/
> total 208
> c--Sr-xrwx  1 3830698  4539461  171, -253099873 Jan 29  1974 #003513*
> -r-sr-xr-x  1 root     bin                               36864 Jul  5 22:43 #003555*
> -r-sr-xr-x  1 root     bin                               20480 Jul  5 22:44 #003616*
> -r-sr-xr-x  1 root     bin                               49152 Jul  5 22:45 #003648*
> -r-sr-xr-x  1 root     bin                               16384 Jul  5 22:45 #003651*
> -r-sr-xr-x  1 root     bin                               12288 Jul  5 22:45 #003655*
> -r-sr-xr-x  1 root     bin                               16384 Jul  5 22:46 #003674*
> -r-sr-xr-x  1 root     bin                               28672 Jul  5 22:47 #003733*
> -r-sr-xr-x  1 root     bin                               32768 Jul  5 22:45 #003763*
> 
> 
> rm: /usr/lost+found/#003648: Operation not permitted
> rm: /usr/lost+found/#003651: Operation not permitted
> rm: /usr/lost+found/#003655: Operation not permitted
> rm: /usr/lost+found/#003674: Operation not permitted
> rm: /usr/lost+found/#003733: Operation not permitted
> rm: /usr/lost+found/#003763: Operation not permitted
> rm: /usr/lost+found/#003555: Operation not permitted
> rm: /usr/lost+found/#003616: Operation not permitted

Are you sure:
1) you are root?
2) these files haven't got any ``flags'' (like immutable, or append-only)?
(man 1 chflags;man 2 chflags) - try ls -lo /....
(I tried it, and with rm file, it asks, with rm -f file it only send the error)
3) the directory's mode bits are OK?


-- 
	Gabor Zahemszky <zgabor@CoDe.hu>

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-
Earth is the cradle of human sense, but you can't stay in the cradle forever.
						Tsiolkovsky



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607301141.LAA01801>