Repost: Cannot remove directory `xpti.dat': Operation not permitted
I posted this earlier asking for help. After a system crash I had to run fsck manually on several volumes - for me this is saying "yes" to whatever fsck ask if it should fix. Anyway, after a restart the properties of xpti.dat (a mozilla component) is changed and I cannot remove it as root. So how do I go about fixing this? Can I use fsck and specify a sertan file? This is a bit over my head so I need advice from the experienced guys out there.
Thank you in advance!
/Mats Soderstrom
Original message:
Quoted 12 lines
Quoted 12 lines
I was left with this unremoveable directory that supposed to be a file after I had to do a volume repair:
[root@a22 /]# cd
/usr/lib/mozilla/components[root@a22 components]# ls -l
total 2
dr-s--s-wt 2 14409 25193 2048 Apr 19 2032 xpti.dat
[root@a22 components]# rm -rf *
rm: cannot remove directory `xpti.dat': Operation not permitted [root@a22 components]#
Quoted 1 line
Quoted 1 line
How do I remove this file?
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 16 lines · Mats Soderstrom
Original message:
Quoted 2 lines
Quoted 2 lines
I was left with this unremoveable directory that supposed to be a
file after I
Quoted 11 lines
Quoted 11 lines
had to do a volume repair:
[root@a22 /]# cd
/usr/lib/mozilla/components[root@a22 components]# ls -l
total 2
dr-s--s-wt 2 14409 25193 2048 Apr 19 2032 xpti.dat
[root@a22 components]# rm -rf *
rm: cannot remove directory `xpti.dat': Operation not permitted [root@a22 components]#How do I remove this file?
The permissions on the xpti.dat directory are irrelevent. It is the permissions of the directory in which xpti.dat is located that determine whether you are allowed to delete it. Make sure the permissions of the enclosing directory include
w permissions. Then ofcourse, with the current permissions of xpti.dat, you are not allowed to remove anything in it. Use chmod to add w permissions.
Erik
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 6 lines · Mats Soderstrom
I posted this earlier asking for help. After a system crash I had to run fsck manually on several volumes - for me this is saying "yes" to whatever fsck ask if it should fix. Anyway, after a restart the properties of xpti.dat (a mozilla component) is changed and I cannot remove it as root. So how do I go about fixing this?
This might be a case for debugfs from e2fsprogs. You can unlink any file with this, but you can also screw up your filesystem. Make sure you use the latest version (>= 1.19) and read the man page.
--
Martin
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Hi,
Quoted 6 lines · Mats Soderstrom
Quoted 6 lines
Quoted 6 lines
dr-s--s-wt 2 14409 25193 2048 Apr 19 2032 xpti.dat
[root@a22 components]# rm -rf *
rm: cannot remove directory `xpti.dat': Operation not permitted [root@a22 components]#How do I remove this file?
Did you already try lsattr/chattr?
bye, Roman
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/