Results 1 to 3 of 3

Thread: Cannot delete file dur to suspicious ownerships

  1. #1
    Join Date
    Oct 2007
    Beans
    33

    Exclamation Cannot delete file dur to suspicious ownerships

    Hi,

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

    Code:
    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:

    Code:
    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

  2. #2
    Join Date
    Nov 2008
    Location
    Sheffield, UK
    Beans
    1,516
    Distro
    Ubuntu

    Re: Cannot delete file dur to suspicious ownerships

    try

    Code:
    sudo -i
    Code:
    rm /path/file

  3. #3
    Join Date
    Jul 2009
    Beans
    16

    Re: Cannot delete file dur to suspicious ownerships

    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

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •