Ubuntu – Insufficient permissions to access USB/Flash drive after UID change

external-hddmountpermissions

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.

Best Answer

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.

Related Question