You are not logged in.

#1 2010-08-19 22:33:16

gojamiegirl
Member
From: Pacific Beach, CA
Registered: 2005-07-05
Posts: 19
Website

Can't Trash Files Outside of Home Directory

Hello

I have a problem sad I can't seem to trash files/directories outside of my home directory even if I have rwx!... not sure when it started.  Here's an example of my issue.

 
[jamie@simula vhosts]$ groups
wheel video audio optical storage camera jamie sshusers www-data
[jamie@simula vhosts]$ pwd
/srv/http/vhosts
[jamie@simula vhosts]$ ls -al
total 12
drwxrwxr-x 3 root  www-data 4096 Aug 19 15:13 .
drwxr-xr-x 3 root  root     4096 Jun  4 20:03 ..
drwxr-xr-x 5 jamie www-data 4096 Aug  4 21:58 doc.demurgatroid.net
[jamie@simula vhosts]$ mkdir testdir
[jamie@simula vhosts]$ ls -al
total 16
drwxrwxr-x 4 root  www-data 4096 Aug 19 15:14 .
drwxr-xr-x 3 root  root     4096 Jun  4 20:03 ..
drwxr-xr-x 5 jamie www-data 4096 Aug  4 21:58 doc.demurgatroid.net
drwxr-xr-x 2 jamie jamie    4096 Aug 19 15:14 testdir
[jamie@simula vhosts]$ gvfs-trash testdir
Error trashing file: Unable to find or create trash directory

But in my home directory (on the same partition mind you) I can trash a file (so it's obviously finding it this time)

[jamie@simula testdir1]$ pwd
/home/jamie/testdir1
[jamie@simula testdir1]$ ls -al
total 8
drwxr-xr-x  2 jamie jamie 4096 Aug 19 15:16 .
drwxr-xr-x 65 jamie jamie 4096 Aug 19 15:16 ..
[jamie@simula testdir1]$ mkdir testdir2
[jamie@simula testdir1]$ ls -al
total 12
drwxr-xr-x  3 jamie jamie 4096 Aug 19 15:16 .
drwxr-xr-x 65 jamie jamie 4096 Aug 19 15:16 ..
drwxr-xr-x  2 jamie jamie 4096 Aug 19 15:16 testdir2
[jamie@simula testdir1]$ gvfs-trash testdir2/
[jamie@simula testdir1]$ ls -al
total 8
drwxr-xr-x  2 jamie jamie 4096 Aug 19 15:16 .
drwxr-xr-x 65 jamie jamie 4096 Aug 19 15:16 ..

...and it shows up in the trash as expected!  What is preventing me from being able to trash files from other locations?  I've tested from various locations in my filesystem and it seems only inside /home/jamie can I trash anything.  I haven't been able to find out much about the error (like where it's attempting to find/create a trash and why there) besides the obvious, li  Here's some more info

* Using Gamin instead of FAM, didn't make any difference to my issue

* Here's my partitions if it matters

[jamie@simula vhosts]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   10M  260K  9.8M   3% /dev
/dev/disk/by-uuid/7cf22373-9d30-4bbd-b178-9702efd1cd1f
                       76G  3.6G   68G   5% /
shm                   1.9G  104K  1.9G   1% /dev/shm
/dev/sda1             958M   15M  895M   2% /boot
/dev/sda5              19G  1.3G   17G   7% /var
/dev/sda6             197G  111G   77G  60% /home
tmpfs                  32M     0   32M   0% /home/jamie/ramdisk

Thank you! smile

Last edited by gojamiegirl (2010-08-19 23:16:29)

Offline

#2 2010-08-19 23:07:45

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Can't Trash Files Outside of Home Directory

Please use code tags so that it is more readeable.

I have edited your post for now.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-08-20 05:23:07

gojamiegirl
Member
From: Pacific Beach, CA
Registered: 2005-07-05
Posts: 19
Website

Re: Can't Trash Files Outside of Home Directory

I first noticed this doing html work in /srv/http/, I gave my user rwx and being able to delete files on the command line I assumed I'd also be able to right-click and 'Move to Trash' in Nautilus, nope.

--> If I 'Move to Trash' from within my home directory it goes to ~/.local/share/Trash/
--> If I 'Move to Trash' from anywhere else (even with permission) it fails because there is no .Trash-??? directory in that partition.

It works if I manually create it.

[jamie@simula ~]$ ls -al /home/jamie/.local/share/Trash/
total 64
drwx------  5 jamie jamie  4096 May 28 16:23 .
drwx------ 14 jamie jamie  4096 Jul 14 22:32 ..
drwx------  2 jamie jamie  4096 Aug 19 21:52 expunged
drwx------  2 jamie jamie 24576 Aug 19 21:52 files
drwx------  2 jamie jamie 24576 Aug 19 21:52 info
[jamie@simula ~]$ ls /.Trash*
ls: cannot access /.Trash*: No such file or directory
[jamie@simula ~]$ gvfs-trash /testdir1/testdir2/
Error trashing file: Unable to find or create trash directory
[jamie@simula ~]$ sudo mkdir /.Trash-1000
[jamie@simula ~]$ sudo chown jamie:jamie /.Trash-1000
[jamie@simula ~]$ gvfs-trash /testdir1/testdir2/
[jamie@simula ~]$ ls -al /.Trash-1000/files/
total 12
drwx------ 3 jamie jamie 4096 Aug 19 22:03 .
drwxr-xr-x 4 jamie jamie 4096 Aug 19 22:03 ..
drwxr-xr-x 2 jamie jamie 4096 Aug 19 21:57 testdir2

This is solved smile

Last edited by gojamiegirl (2010-08-20 05:24:05)

Offline

#4 2011-12-21 21:02:53

skarno
Member
Registered: 2011-12-21
Posts: 1

Re: Can't Trash Files Outside of Home Directory

Hi, the problem with this "solution" is that the files who've been erase doens't go to the /llocal/share/trash directory but into the ./trash-1000 directory.
And on the wiki of thunar it is say:


http://thunar.xfce.org/news.html#2007-01-21

"Trash

The trash implementation, which was introduced with the first release candidate of Thunar (0.4.0 RC1), was initially limited to the home trash, and therefore not a fully compliant implementation of the Desktop Trash Can Specification. This release finally adds support for the so-called trashing to "top directories", which means that files can be trashed into special folders on removable volumes to avoid costly copying to the home folder. Xfce is thereby the second desktop which fully complies with the Desktop Trash Can Specification."


So the file must be add (with a coppy on the partion) into the trash home directory ...


Who have a good solution so?

Thx very much!

Offline

#5 2011-12-23 02:57:31

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Can't Trash Files Outside of Home Directory

Please do not necro bump threads. This thread is more than a year old. start a new thread and link to this one if it is relevant.

Closing...


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

Board footer

Powered by FluxBB