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 like
udisksctl mount -b /dev/sdX --options umask=0000
but 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.)