Plasma KDE. Dolphin file manager. 3 users.
I encounter an strange issue. First I solved password authorization when mounting devices with this Password authentication when mounting drives in Thunar - #5 by pebcak . Worked great. Thanks.
But what is happening now is when one do a Switch User. If any user was on Dolphin accessing any of the mounted devices if you use Switch User the next user that login will NOT have access to the mounter devices with a message on top of the Dolphin like that: Could not enter folder /run/media/âuserâ(last logged in)/device. Itâs like the device is still being used by the user that was last logged in.
How come the system still keeps logged out user access to mounted device?
Restart solves access. But this makes Switch User useless.
If you
then
is still logged in.
Do you have mountpoints defined for your external drives in your /etc/fstab?
I donât think so:
/etc/fstab: static file system information.
Use âblkidâ to print the universally unique identifier for a device; this may
be used with UUID= as a more robust way to name devices that works even if
disks are added and removed. See fstab(5).
UUID=355D-07A4 /boot/efi vfat fmask=0137,dmask=0027 0 2
UUID=d84bfbb7-81d0-46f1-b28d-d44713b1fb55 swap swap defaults 0 0
UUID=c76041bb-a1a8-4fb0-9c0e-998387ba469e / ext4 noatime 0 1
UUID=eeb35942-5036-40c1-887c-75e7edf7cf3c /home ext4 noatime 0 2
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
The issue is the device is already mounted, so wonât mount again. It canât be accessed, because where it is mounted has permissions for the other user, not the user youâve switched to.
I suspect if you mount it to a non-user-specific location that both users have access to (group access for example), it should work.
Because the system doesnât assume a user has to be logged in to a desktop environment to access system resources. For example, a user could be remotely accessing resources over SSH.
Itâs probably also worth noting, that switching users is not the same as logging out and logging in as a different user. Itâs like switching between applications (alt-tab) isnât the same as closing one application and launching another.
You might be able to force unmounting on logout, depending on your desktop environment. In KDE Plasma for example, you can add a logout script which might carry the unmount commands (Settings > Autostart > + Add).
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.