I'm using Debian testing with XFCE as Desktop Environment and Thunar as filemanager. I've an issue regarding the mounting of USB mass storages such as USB flash drive. When I plug in the USB flash drive the icon representing it appears on the desktop; if I double-click it, Thunar mounts it but with root as user and group. Result: I can access the device (as user), but I cannot write on it.
I've checked mount output with two different USB flash drives. I've noticed that the automount is correctly done with the USB flash drive on which the filesystem is created on /dev/sdb (USB flash drive 1), for example; in the other one where I've a /dev/sdb1 partition (USB flash drive 2), XFCE automounting doesn't correctly work and mount the device with root ownership.
USB flash drive 1 mount output:
/dev/sdb on /media/gilberto/3C93-E461 type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=437,iocharset=utf8,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
USB flash drive 2 mount output:
/dev/sdb1 on /media/usb0 type vfat (rw,nosuid,nodev,noexec,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro,user)
Any solution for this issue?