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 changed ownership of /var/www to username:username since im using it only for development but when i try to delete something it wont send the files to the trash but asks me to permanently delete them.

share|improve this question
if you type ls -al is there a file called .trash-1000 in it? If not could you try making this file and see if that helps (touch /var/www/.trash-1000)? – adempewolff Aug 21 '12 at 1:52
there is one inside /var/www called "Trash-1000", 775 permissions owned by my user and group (same as the content of /var/www) – Adonis K. Aug 21 '12 at 2:05
hmm, mine are 700 and owned by my user and group, but I don't see how that would make a difference. – adempewolff Aug 21 '12 at 2:15
up vote 1 down vote accepted


I tested here, and had the same problem.

You need to create a .Trash-1000(*) in the highest folder in this filesystem. In my case, it was /

so I ran sudo mkdir /.Trash-1000 and chown user:user /.Trash-1000. Nautilus no longer complains, and it sends the files to the Trash folder.

However ... They dont show up in my trash (via GUI). I just know they are there because I went and checked

(*) actually, its .Trash-UID , where the UID can be found using the command id

share|improve this answer
isn't it weird though? why wouldn't the files be sent to the user's trash? im pretty sure the 'gui trash' that you are about is the one dedicated to your user/uid. – Adonis K. Aug 21 '12 at 3:43
well ... keeping a Trash for each file system kinda makes sense (given that some file systems are thumbdrives) But I have no idea were the user can see the deleted items ... – josinalvo Aug 21 '12 at 3:55

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.