Since changing my uid I no longer have the permissions to see a USB hardrive/stick that is automatically mounted at /media/USERNAME.

Nautilus gives the message

Unable to open a folder for DRIVENAME

No application is registered as handling this file

If I log on as root in a terminal I can see that the drive is mounted in the proper location and can access the files.

Does someone know what I need to do to make it so that I can use the mounted drive with my non-root user?

With other users on the system everything works as expected.

  • 1) You should edit your post by clicking the small light gray button below it on the left, instead of adding comments to improve the readability of your post. 2) Please post the output of cat /etc/fstab (as an edit). Thank you! – Byte Commander Feb 9 '15 at 10:11
  • I'm having this exact same problem! – StFS Feb 9 '15 at 15:26
up vote 5 down vote accepted

I managed to solve this problem by unmounting all USB disks I had plugged in and deleting the /media/username directory.

Then, when I plug in my USB stick again, the directory gets re-created and all is good.

I discovered another solution amidst my being a knucklehead...

Ensure first that your users /media/USERNAME directory is actually owned by your user (the media directory itself is owned by root for security reasons).

You can get away with chowning your users media directory to get your desired result (viewing the contents) through:

chown user:user /media/USERNAME

Just make sure you don't have this location open in any other terminal window as you will not be able to do this if that is the case.

Presto, you should now be able to access the drive! :)

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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