View Full Version : [ubuntu] How do I delete locked folders?

October 11th, 2010, 08:13 PM
I was copying the contents of a CD (Orange Box) to my home directory so I could install it via wine, but my touchpad was messed up and I was forced to restart before the transfer was finished. Now, there's a folder with all of the files, but I don't have permission to alter or use them and it has a padlock insignia on it. When I try to delete it it says "Unable to trash file: Permission denied". Any suggestions/solutions?

Things I've tried:
Just deleting it: permission denied
Running nautilus and deleting it as root: unable to access home directory
Running variations of
sudo rm -Rf /home/Andrew/Orange Box: did nothing

October 11th, 2010, 08:20 PM
Press Alt-F2 and type the command:

gksudo nautilus

This is a root file browser. See if you can deal with the files with that :-)

October 11th, 2010, 08:25 PM
Worked! Thanks a lot. :)

April 13th, 2011, 10:51 PM
Works a charm, thanks!

April 14th, 2011, 07:26 AM
Might have also been an issue that Orange Box was two separate words. The command you issued would have failed because it was technically looking for a folded called Orange and not 'Orange Box'. Just an observation.

April 14th, 2012, 09:59 AM
Thanks man worked like a charm !!!

August 14th, 2012, 04:47 PM
thanks a lot sir, really it works fine, thanks again