Well, title says it all, but to be more clear:
To mount a share in a local mount point I need to do something like
sudo mount -t cifs //location/to-share /home/<user>/some/destination -o gid=<gid>,uid=<uid>,username=<username>
Conversely, doing this:
mount -t cifs <all the other arguments>
will result in mount: only root can do that
. Why? Why do I need to be superuser? I am adding something to my home directory. Then why do I need to superuser? I'm sure there is a valid reason, but it just strikes me as odd.
man mount
, you will find information on how to mark the mount point as being user mountable..gvfs
directory. This isfuseblk
, user-space driver functionality.