On my PC, I have three user accounts. Suppose I open a drive from the file manager in one account, it gets mounted and can be accessed fine. But when I try to access the same drive from another account, it appears as already mounted, but trying to open it results in the following error:
You do not have the permissions necessary to view the contents of “My Videos”.
I know that I can do
sudo umount
and then
sudo mkdir
sudo mount
But, is there any permanent fix?
Best Answer
This is happen because when a device is mounted is mounted under your name and so, the system think that is yours and only you should have access to it. To pass by this you can simply unplug and plug again that device when you switch to another account, or...
From this output:
I can understand that you have probably more than one device plugged. Let's take for example
sdb2
- it was the last one plugged. It's UUID is8AD65635D65621AD
- keep this in mind.First, make a group called let say
my_device
(you can call it whatever else) and add your accounts to it. You will do these from terminal:Second, make a new folder called
my_device
in/media
and give everyone in themy_device
group permission to read and write it:Finally, open
fstab
as root. Something like:and add this line at the end:
Save the file and close it. That's it
The same method can be applied for other devices.
Source: http://ubuntuforums.org/showthread.php?t=1684055