Question

mount.nfs: mount(2): Permission denied in Ubuntu 20.04 server & client

Posted August 20, 2020 4.4k views
DigitalOcean ArticlesUbuntu 20.04

I strictly followed the instructions but while executing mount command got the following.


root@cgs1:~# mount -vvvv cgs2:/2d1 /mnt
mount.nfs: timeout set for Thu Aug 20 23:12:54 2020
mount.nfs: trying text-based options 'vers=4.2,addr=172.31.101.9,clientaddr=172.20.160.50'
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting cgs2:/2d1

I have checked my /etc/exports, ufw status etc but failed to solve it.

My point is please add troubleshooting in this article.

edited by bobbyiliev

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

The error you are receiving means that the NFS server doesn’t have the correct permissions to allow this client to connect.

You would need to include your config file and show what host access you have setup on the server side to ensure that you have the correct IP address and directories setup for exporting.