NFS Mount not working: mount.nfs: Operation not permitted

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
User avatar
AverageGuy
Level 1
Level 1
Posts: 16
Joined: Tue Oct 18, 2011 6:45 am
Location: Atlanta, Georgia, USA

NFS Mount not working: mount.nfs: Operation not permitted

Post by AverageGuy » Sun Sep 30, 2018 9:29 am

Server is Mint 17. Client is Ubuntu 16.04. On server /etc/exports:

Code: Select all

/var/www/html/mail   192.168.2.51(rw,fsid=0,sync,no_subtree_check)
I tried it without the fsid=0. No change.

On server:

Code: Select all


ls -ld /var/www/html/mail

drwxrwxr-x 2 www-data www-data 4096 Sep 30 08:13 /var/www/html/mail
On client:

Code: Select all


showmount -e 192.168.2.95
Export list for 192.168.2.95:
/var/www/html/mail 192.168.2.51
mount -t nfs 192.168.2.95:/var/www/html/mail /mnt
mount.nfs: Operation not permitted
Doing this all as root. /mnt is 755 owned by root.
Internet searches didn't bring up anything very interesting.

rene
Level 8
Level 8
Posts: 2228
Joined: Sun Mar 27, 2016 6:58 pm

Re: NFS Mount not working: mount.nfs: Operation not permitted

Post by rene » Sun Sep 30, 2018 10:27 am

Does the client have nfs-common installed? It needs to so as to be running rpcbind. Not sure that "operation not permitted" would be the error you'd get but thought I'd suggest it as a first try. If not, and although I've never experienced issues myself, you may need to look into a NFS version 3 versus version 4 difference considering the 14.04 versus 16.04 bases.

User avatar
AverageGuy
Level 1
Level 1
Posts: 16
Joined: Tue Oct 18, 2011 6:45 am
Location: Atlanta, Georgia, USA

Re: NFS Mount not working: mount.nfs: Operation not permitted

Post by AverageGuy » Mon Oct 01, 2018 5:19 am

Yes, nfs-common is installed. Sorry the server is running Mint 18, not 17. A typo. I just tried it from Mint to Mint and it works. What fails is the Ubuntu 16.04 client. Which makes no sense.

User avatar
catweazel
Level 17
Level 17
Posts: 7761
Joined: Fri Oct 12, 2012 9:44 pm
Location: Australian Antarctic Territory

Re: NFS Mount not working: mount.nfs: Operation not permitted

Post by catweazel » Mon Oct 01, 2018 5:23 am

AverageGuy wrote:
Mon Oct 01, 2018 5:19 am
Yes, nfs-common is installed. Sorry the server is running Mint 18, not 17. A typo. I just tried it from Mint to Mint and it works. What fails is the Ubuntu 16.04 client. Which makes no sense.

Code: Select all

sudo mkdir /mnt/mount_point
sudo chown $USER:$USER /mnt/mount_point
sudo mount -o vers=3 192.168.2.95:/var/www/html/mail /mnt/mount_point
¡uʍop ǝpısdn sı buıɥʇʎɹǝʌǝ os ɐıןɐɹʇsnɐ ɯoɹɟ ɯ,ı

rene
Level 8
Level 8
Posts: 2228
Joined: Sun Mar 27, 2016 6:58 pm

Re: NFS Mount not working: mount.nfs: Operation not permitted

Post by rene » Mon Oct 01, 2018 11:13 am

If manual version forcing as per above doesn't help though, please verify rpcbind to run on the client: ps ax | grep rpcbind and make sure it's not a firewall issue on said client.

Post Reply

Return to “Other networking topics”