PDA

View Full Version : [kubuntu] Cannot delete file dur to suspicious ownerships



CDrewing
August 24th, 2012, 07:47 AM
Hi,

after fsck I got the problem that I cannot delete the file /usr/bin/boincmgr due to suspicious ownerships. See yourself:


cdrewing@cdrewing-desktop:/usr/bin$ ls -l boinc*
-rwxr-xr-x 1 root root 841992 Jul 18 19:24 boinc
-rwxr-xr-x 1 root root 227368 Jul 18 19:24 boinccmd
-rwxr-xr-x 1 root 256 4096 Mai 20 1986 boincmgr


No need to mention that there is no group 256.

When I try to delete/change the file I receive:


cdrewing@cdrewing-desktop:/usr/bin$ sudo rm -f /usr/bin/boincmgr
[sudo] password for cdrewing:
rm: Entfernen von »/usr/bin/boincmgr“ nicht möglich: Die Operation ist nicht erlaubt


Note: Translated this means "rm: removal of '/usr/bin/boincmgr' not possible: The operation is not permitted"

I even tried to remove the file using a LiveCD where I am receiving the same error. Even chown to root:root is not working.

Does anyone have an idea how to delete this file (as I want to make needed updates on boincmgr) without wiping my whole drive (and installing the system completely from scratch as well)?

Thank you for your help.

Rgds
Christian

SlugSlug
August 24th, 2012, 09:10 AM
try


sudo -i


rm /path/file

DieEier
October 5th, 2012, 11:01 AM
Maybe try
lsattr test /usr/bin/boincmgr
If you see something like this it means that the imutable flag is set on this file ( indicated by the i ). This is like being made read only.
----i--------e- /usr/bin/boincmgr

To remove the immutable flag do
sudo chattr -i /usr/bin/boincmgr

If you are unsure about what the file does then it may be a good idea to go
mv /usr/bin/boincmgr /usr/bin/boincmgr.back
this will rename the file so that you can put it back in play if something breaks. May be safer than just removing.
Hope this helps