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

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
AverageGuy
Level 1
Level 1
Posts: 30
Joined: Tue Oct 18, 2011 6:45 am
Location: Atlanta, Georgia, USA

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

Post by AverageGuy »

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.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

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

Post by rene »

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: 30
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 »

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 19
Level 19
Posts: 9763
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 »

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
"There is, ultimately, only one truth -- cogito, ergo sum -- everything else is an assumption." - Me, my swansong.
rene
Level 20
Level 20
Posts: 12240
Joined: Sun Mar 27, 2016 6:58 pm

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

Post by rene »

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.
Locked

Return to “Networking”