My /etc/exports
/root/backup 192.168.30.26(rw,sync,insecure,all_squash,no_subtree_check)
While I mounting as non root user,
mount -o v3 192.168.30.26:/root/backup /usr/backup/
I got mount: only root can do that
Note: I saw option user
in fstab. Is there anyway without it ?
Best Answer
Users could modify system's mount table either by
sudo
orsu
or by
user,noauto
options, in /etc/fstabSample:
server side
If on server host whith IP address
192.168.30.11
, you have in/etc/exports
client side
On client host, with IP address
192.168.30.26
you have to add in/etc/fstab
something like:Then, users on 192.168.30.26 must be able to mount share by just running:
without
sudo
.noauto
prevent system to mount the share at boot time.user
tell system to autorize (local) users to mount the share.