I'm running a script that needs root privileges. One of its functionality is mounting an attached user HDD by using udisksctl utility. I'm using it likeudisksctl mount -b /dev/sdX --options umask=0000but when it succeed, it automaticaly mounts it to /media/root/<LABEL>. But since it mounts it in root's directory, a normal user can't use it or unmount it etc.How can I succeed it? Anything wrong with my umask usage or it is about env variables? (My distro is Ubuntu, I'm using udisksctl for cross-platform issues.)
Normal user can't unmount if mounted by root
linux;ubuntu;mount;removable storage