I am trying to set a VirtualBox shared folder mountable by any user, so this is the line I put in /etc/fstab
:
# mint shared folder
mint /media/sf_mint vboxsf defaults,user,uid=1000,gid=999 0 0
However, I get this error message:
juanlu@minted ~ $ mount mint
Only root can mount shared folders from the host.
juanlu@minted ~ $ sudo !!
sudo mount mint
unknown mount option `user'
valid options:
rw mount read write (default)
ro mount read only
uid =<arg> default file owner user id
gid =<arg> default file owner group id
ttl =<arg> time to live for dentry
iocharset =<arg> i/o charset (default utf8)
convertcp =<arg> convert share name from given charset to utf8
dmode =<arg> mode of all directories
fmode =<arg> mode of all regular files
umask =<arg> umask of directories and regular files
dmask =<arg> umask of directories
fmask =<arg> umask of regular files
If I remove the user
option, then I am forced to use sudo
but at least the owner of the mount point is assigned properly. What am I doing wrong here?
Notice that this might be duplicate to Mounting a VBox shared folder as user, but I actually tried an option it was supposed to work.