Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm attempting to set up NFS file sharing and keep getting the error

mount.nfs: access denied by server while mounting 192.168.1.110:/myshared

Here is the exact command I'm using to mount:

sudo mount -o nolock 192.168.1.110:/myshared /home/emiller/MyShared

I have set 'Enabled NFS' in DSM and set NFS priviledges in the the Shares section of the control panel. Here is the /etc/exports entry from the NAS:

volume1/myshared 192.168.1.*(rw,sync,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)

I read some things about the hosts.allow and hosts.deny but it seems like if they are empty they aren't used for anything. I can see the share when I run ...

showmount -e 192.168.1.110

Any help would be appreciated in this matter.

share|improve this question

1 Answer 1

up vote 1 down vote accepted

This was a stupid mistake on my part. Needed to put a / in front of

volume1/myshared 192.168.1.*(rw,sync,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0) 

so that it becomes

/volume1/myshared 192.168.1.*(rw,sync,no_wdelay,no_root_squash,insecure_locks,anonuid=0,anongid=0)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.