From owner-freebsd-questions Wed Apr 11 0:39:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from truemetal.org (truemetal.org [206.168.16.97]) by hub.freebsd.org (Postfix) with SMTP id 63C8A37B422 for ; Wed, 11 Apr 2001 00:39:40 -0700 (PDT) (envelope-from universe@truemetal.org) Received: (qmail 18376 invoked by alias); 10 Apr 2001 20:29:08 -0000 Received: from unknown (HELO truemetal.org) (149.225.36.209) by 206.168.16.97 with SMTP; 10 Apr 2001 20:29:08 -0000 Message-ID: <3AD36D4C.8F68A1CE@truemetal.org> Date: Tue, 10 Apr 2001 22:30:04 +0200 From: universe X-Mailer: Mozilla 4.76 [en] (X11; U; FreeBSD 4.1-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: mail@krel.org, freebsd-questions@freebsd.org Subject: Re: cant remove files with "operation not allowed error" References: <20010410161726.A25069@krel.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG try "ls -lo" to view the flags of the files to be deleted. if it returns flags like "uunlnk", "sunlnk" or something similar ( see "man chflags") then that might be the problem. example: bash-2.04$ ls -lo wurst.txt -rw-r--r-- 1 universe universe uunlnk 12 Apr 10 22:22 wurst.txt bash-2.04$ rm wurst.txt rm: wurst.txt: Operation not permitted bash-2.04$ chflags nouunlnk wurst.txt bash-2.04$ ls -lo wurst.txt -rw-r--r-- 1 universe universe - 12 Apr 10 22:22 wurst.txt bash-2.04$ rm wurst.txt that's it. see chflags for further commands and flags. hth, markus Ilya wrote: > > Hi, on my laptop i went for current to see if it will help me out with pcmcia, it didnt, so i went back to stable. but now there are several files i cannot delete (some lib files and old kernel modules), rm doesnt work, i can cp them, i can mv them in same partition, but not to a different one. one time i got crosslink error, but i always get "operation not allowed" when i try to remove them. i have run fsck numerouse times and it had found no problems with my drives. any suggestions? > > thx > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message