Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
1  
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

1 Answer 1

up vote 1 down vote accepted

PARTIAL SOLUTION

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
1  
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

 
discard

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.