[Bug 340277] [NEW] trash fails on filesystem whose mount point isn't writable

Myk Melez myk at melez.com
Tue Mar 10 01:00:18 UTC 2009


Public bug reported:

Binary package hint: trash-cli

I run Ubuntu in a VMware Fusion VM on a Mac OS X host machine. I mount
the host OS's filesystem in Linux using Fusion's Shared Folders feature,
which mounts it at /mnt/hgfs with permissions that don't allow me to
modify the mount point itself (although I can modify the files it
mounts):

myk at myk:~$ ls -lad /mnt/hgfs
dr-xr-xr-x 1 myk myk 4192 2009-03-09 17:48 /mnt/hgfs

When I try to trash a file on that filesystem using the trash command
from the trash-cli package, the program throws an exception because it
can't write the file to /mnt/hgfs/.Trash-1000:

myk at myk:~$ touch /mnt/hgfs/myk/foo
myk at myk:~$ trash /mnt/hgfs/myk/foo
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/libtrash/__init__.py", line 266, in persist_trash_info
    os.makedirs(self.getInfoPath(), 0700)
  File "/usr/lib/python2.5/os.py", line 164, in makedirs
    makedirs(head, mode)
  File "/usr/lib/python2.5/os.py", line 171, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/mnt/hgfs/.Trash-1000'
trash: cannot trash `/mnt/hgfs/myk/foo': [Errno 13] Permission denied: '/mnt/hgfs/.Trash-1000'

This command should succeed, moving the file to the trash folder in my
home directory (~/.local/share/Trash/) if necessary, as does the utility
distributed in this discussion forum thread
<http://ubuntuforums.org/showpost.php?p=4916033>.

myk at myk:~$ lsb_release -rd
Description:	Ubuntu 8.10
Release:	8.10

myk at myk:~$ apt-cache policy trash-cli
trash-cli:
  Installed: 0.10.r55-0ubuntu1
  Candidate: 0.10.r55-0ubuntu1
  Version table:
 *** 0.10.r55-0ubuntu1 0
        500 http://us.archive.ubuntu.com intrepid/universe Packages
        100 /var/lib/dpkg/status

** Affects: trash-cli (Ubuntu)
     Importance: Undecided
         Status: New

-- 
trash fails on filesystem whose mount point isn't writable
https://bugs.launchpad.net/bugs/340277
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list