Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a very peculiar situation. I installed a piece of software by building it from source. I used "make install" from the folder that I downloaded it into (on my desktop). Later on, after not using it for a while, I decided I don't need the folder on my desktop and shift-deleted it. Most files in that folder were deleted, but some of them cannot. It says I have no permissions to do it.

What I am assuming is that those files are used by the kernel, because the software was built from source. Is this correct, and if so, how can I delete them? Can I boot in another kernel or do something like Windows's safe mode?

share|improve this question
up vote 1 down vote accepted
sudo rm -rf ~/Desktop/<path_to_folder>

The reason you cannot remove that folder is that during compiling and installation some files where created with administrator privileges (probably using sudo), you wont be able to remove those with your account.

Its not that the files are being used at the moment, you simply don't have any rights to delete them.

Use the command above to delete the files under that folder, it will grant you privileges to remove it.

share|improve this answer
Damn. I tried this without sudo before asking the question. Now it worked, don't know why I didn't try that. Thanks! – Slavo Nov 16 '11 at 19:13

When you do "make install", the program files are copied to system. Those files you can't delete probably belong to root. To delete them, hit Alt+F2 and execute:

gksu nautilus ~/Desktop

This will open a Nautilus window, from where you can delete the folder you need. Please note that this Nautilus window has root access to files, so when you delete what you need close it :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.