To elaborate the answer of @Seamus, you have to differentiate between the mount action and the access to the mount point. in principle these have nothing to do with each other. Following the Unix paradigma "everything is a file", a remote filesystem is mounted to a local directory so you can access its content like local files. So mounting the filesystem is just doing that. By default this can only be done with root rights. With entries in /etc/fstab
mounting is done by the operating system at boot up and the operating system uses root rights for this.
It is possible to mount filesystems with user rights, but that needs additional helper programs or entries in /etc/fstab
(options user, or users) but that is out of scope here. Have a look at man mount
.
As already said, mounting has nothing to do with access rights to the mount point. If you have mounted a filesystem with whatever rights then you will see the access rights that have been setup before on the filesystem or given by the sharing process (nfs with /etc/exports
, samba with /etc/samba.conf
, etc.). After a mount just look at its rights with, e.g.
rpi ~/$ sudo ls -la /mnt
root
user of course.