I am attempting to automount an nfs share on my server to my local machine using fstab. I have a few shares from the server that mounts on the local machine. I am sharing all the drives that is mounted on the server in the /media folder to /mnt/server on local machine. They all mount prefectly and works as expected. I also want to automount to the apache web server /var/www folder on the server. manual mounting works fine, but I am unable to make an automount work.fstab for these mounts looks as follows:
server:/media /mnt/server nfs4 rw,_netdev 0 0server:/var/www /mnt/var nfs4 rw,_netdev 0 0
I don't have much more info unless someone can point me to a log where I can find more info, the error that dolphin shows is"An error occurred while accessing 'Home', the system responded: mount.nfs4: failed to prepare mount: Operation not permitted"
. I have tried to change the nfs server share path but same error as always.
My setup is server: Ubuntu 20.10 samba and nfs active,workstation: Kubuntu 20.04 only nfs active.
Thanks