Test case is a 1007 package bookworm XFCE. Note that fuse(3), udisk2, gvfs, sudo, and a few dozen of their dependencies are not installed. So I removed pmount and removed the user from plugdev.
Code: Select all
# gpasswd -d user plugdev
Of course nothing shows up on the desktop without gvfs installed. The user lsusb see's it, and with a label it is enumerated in /dev/disk/by-label.
I now need to add a polkit rule, I do so in my chosen /etc/polkit-1/localauthority/30-site.d/42-users.pkla rule file using a root thunar to navigate and clicking opens the file in a root mouspad so I can add
org.freedesktop.systemd1.manage-units;
Code: Select all
[User Permissions]
Identity=unix-user:user;
Action=org.xfce.xfce4-terminal;com.ubuntu.pkexec.synaptic;org.xfce.mousepad;org.xfce.thunar;more_here;
ResultActive=yes
Code: Select all
$ systemd-mount /dev/disk/by-label/USB_POOL ~/Public
Started unit home-user-Public.mount for mount point: /home/user/Public
$ systemd-umount /dev/disk/by-label/USB_POOL
Stopped unit home-user-Public.mount for mount point: /home/user/Public