Results 1 to 8 of 8

Thread: How do I delete Locked Files?

  1. #1
    Join Date
    Nov 2008
    Location
    Cape Town, RSA
    Beans
    62
    Distro
    Ubuntu 10.04 Lucid Lynx

    How do I delete Locked Files?

    Hey all

    I have a few files on my desktop that have a lock on the top right corner of the Icon like this....


    How do i delete it? it tells me that i do not have sufficient permission to delete this file....

    thanks for your help
    AMD Phenom II X6 Six Core 1075T 3.00GHz - Biostar TA890FXE AMD 890FX - 2 x Gigabyte GeForce GTX 460 OC 768MB - J.Skill RipJaw 4GB (2x2GB) DDR3 - Antec TruePower Quattro 1200W Power Supply - Samsung 1Tb 400Gb Seagate - 500Gb Seagate

  2. #2
    Join Date
    Feb 2009
    Location
    USA
    Beans
    3,187

    Re: How do I delete Locked Files?

    1. If you don't have sufficient permissions to delete a file, then you should really consider if you want to delete it. If you don't have permission, this means that it is a system file and it may mess your system.

    2. How did such file get on your Desktop in the first place. Something here is going very wrong.

    3. You can open terminal (Apps -> Access -> Terminal) and run:
    Code:
     gksudo nautilus
    This will open file manager with superuser privileges, which means that you can do anything INCLUDING COMPLETELY DESTROY YOUR SYSTEM. Be very very very careful about what you are doing.

    4. You should carefully consider 1 and especially 2 before you go to 3. Post more information here so that we can help you.

  3. #3
    Join Date
    May 2010
    Beans
    39

    Re: How do I delete Locked Files?

    If you are SURE that they are not important files, you have to remove them as root user (admin).

    Star opening a terminal. Then type:

    sudo rm /your/files/path/file_name.ext

    It could ask for you root password. Just type it and press enter.

    sudo means "exec the next command as root"
    rm is "remove". Be careful because no one will never ask you a confirm before deleting a file.
    Last edited by Taak; November 10th, 2010 at 09:32 PM.

  4. #4
    Join Date
    Oct 2009
    Beans
    24

    Re: How do I delete Locked Files?

    If what Taak said doesn't help the first you have to change the (attributes) permissions of the files by writing on the terminal

    Code:
    sudo chmod +rw  /the file paths
    #You may also need to change the owner ship,since you want to delete the files you can fill in all the possible owner ship attributes by typing
    sudo chown 777 /the file path
    
    # Now you can delete them using your file manager or from the terminal
    hack-am!

  5. #5
    Join Date
    Nov 2008
    Location
    Cape Town, RSA
    Beans
    62
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do I delete Locked Files?

    I my mistake unziped Joomla onto my desktop and for some reason it just locked its self there but i already have a copy of Joomla in another dir.

    So i have no clue why it will want to lock its self but the files are useless and Ima delete them...
    AMD Phenom II X6 Six Core 1075T 3.00GHz - Biostar TA890FXE AMD 890FX - 2 x Gigabyte GeForce GTX 460 OC 768MB - J.Skill RipJaw 4GB (2x2GB) DDR3 - Antec TruePower Quattro 1200W Power Supply - Samsung 1Tb 400Gb Seagate - 500Gb Seagate

  6. #6
    Join Date
    Nov 2008
    Location
    Cape Town, RSA
    Beans
    62
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do I delete Locked Files?

    Quote Originally Posted by 3Miro View Post
    1. If you don't have sufficient permissions to delete a file, then you should really consider if you want to delete it. If you don't have permission, this means that it is a system file and it may mess your system.

    2. How did such file get on your Desktop in the first place. Something here is going very wrong.

    3. You can open terminal (Apps -> Access -> Terminal) and run:
    Code:
     gksudo nautilus
    This will open file manager with superuser privileges, which means that you can do anything INCLUDING COMPLETELY DESTROY YOUR SYSTEM. Be very very very careful about what you are doing.

    4. You should carefully consider 1 and especially 2 before you go to 3. Post more information here so that we can help you.
    Awesome this worked thanks alot guys
    AMD Phenom II X6 Six Core 1075T 3.00GHz - Biostar TA890FXE AMD 890FX - 2 x Gigabyte GeForce GTX 460 OC 768MB - J.Skill RipJaw 4GB (2x2GB) DDR3 - Antec TruePower Quattro 1200W Power Supply - Samsung 1Tb 400Gb Seagate - 500Gb Seagate

  7. #7
    Join Date
    Feb 2009
    Location
    USA
    Beans
    3,187

    Re: How do I delete Locked Files?

    If all that you did was unzip a file, then those would have probably been "read-only" files. You can delete read only files without sudo or gksudo, you an open the regular file manager (Places -> Home or Desktop) and then right-click on files -> properties -> permissions and change the access for the owner to "Read Write". The gksudo and sudo are the nuclear options, those will delete everything.

    Glad you resolved this issue. If you don't have any more questions, you can mark the thread as "Solved"

  8. #8
    Join Date
    Nov 2008
    Location
    Cape Town, RSA
    Beans
    62
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How do I delete Locked Files?

    Hey yeah its resolved, how so mark the thread as "Solved"?

    thanks
    AMD Phenom II X6 Six Core 1075T 3.00GHz - Biostar TA890FXE AMD 890FX - 2 x Gigabyte GeForce GTX 460 OC 768MB - J.Skill RipJaw 4GB (2x2GB) DDR3 - Antec TruePower Quattro 1200W Power Supply - Samsung 1Tb 400Gb Seagate - 500Gb Seagate

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
  •