This question already has an answer here:
In Xubuntu 12.10, I can mount external disks that are attached and they appear under
/media/$username/$diskname. I can unmount them by going to the desktop, right-clicking, waiting 6 seconds or so, and clicking Eject Volume - or by opening
gnome-disks and clicking on stop on the disk icon.
However, I'd far prefer to simply run
umount /media/$username/$diskname from the command-line. This currently requires
sudo rights, or for me to add each disk to the
fstab - since the whole point of this is automatically mounting previously-unseen disks, that won't work generally.
How can I configure the rights/etc to be able to
umount automatically mounted disks? I am the right user after all...