Hi, I get the error "Operation not permitted" when I try to delete a file as root, see some commands below. - there is no "i" attribute - it's a problem with the files and not the upper directories since I can delete a similar file in the same directory - fsck -f doesn't find any error on the partition - the partition is mounted rw If this is not the right place to submit this bug because it's a kernel bug or if you need further information, tell me. Thanks Alain root ~ #stat /var/lib/dpkg/info/groff.postrm File: "/var/lib/dpkg/info/groff.postrm" Size: 202 Blocks: 8 IO Block: 4096 Regular File Device: 1606h/5638d Inode: 48907 Links: 1 Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: Tue Jan 29 08:50:53 2002 Modify: Tue Jan 15 01:25:56 2002 Change: Sun Mar 31 20:12:30 2002 root ~ #lsattr /var/lib/dpkg/info/groff.postrm s-S-adAc-D---- /var/lib/dpkg/info/groff.postrm root ~ #rm /var/lib/dpkg/info/groff.postrm rm: cannot unlink `/var/lib/dpkg/info/groff.postrm': Operation not permitted root ~ #rm /var/lib/dpkg/info/zsh.postrm root ~ #mount | grep " /var" /dev/hdc6 on /var type ext3 (rw)
commence Alain Tesio quotation:> root ~ #lsattr /var/lib/dpkg/info/groff.postrm > s-S-adAc-D---- /var/lib/dpkg/info/groff.postrmWhat's that 'D' attribute mean? My copy of chattr(1) does't describe it. Any chance it's some kind of "delete inhibit" attribute? -- ///////////////// | | The spark of a pin <sneakums@zork.net> | (require 'gnu) | dropping, falling feather-like. \\\\\\\\\\\\\\\\\ | | There is too much noise.
On Apr 01, 2002 07:05 +0200, Alain Tesio wrote:> root ~ #lsattr /var/lib/dpkg/info/groff.postrm > s-S-adAc-D---- /var/lib/dpkg/info/groff.postrm > > - there is no "i" attributeBut there appears to be an "append-only" (a) attribute. Try doing "chattr = /var/lib/dpkg/info/groff.postrm", which will turn off all of the ext2 attributes. Cheers, Andreas -- Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto, \ would they cancel out, leaving him still hungry?" http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
Andreas Dilger wrote:> > root ~ #lsattr /var/lib/dpkg/info/groff.postrm > > s-S-adAc-D---- /var/lib/dpkg/info/groff.postrm > > > > - there is no "i" attribute > > But there appears to be an "append-only" (a) attribute. > > Try doing "chattr = /var/lib/dpkg/info/groff.postrm", which will turn > off all of the ext2 attributes.Thanks, it works fine now, I didn't know about the other attributes, no idea how they were set, probably just some hard drive corruption. Alain