For a Raspberry Pi application (https://github.com/outdoorbits/little-backup-box) I work on a web UI. This allows to mount USB-devices and perform backups. By the php-website a bash-script is triggered and this executes finally:
sudo mount /dev/sda1 /media/storage/ -o umask=0
User www-data is...