CodexBloom - Programming Q&A Platform

Oracle Cloud OCI Compute Instance scenarios to Mount NFS with Permission Denied scenarios

👀 Views: 3 💬 Answers: 1 📅 Created: 2025-05-31
oracle-cloud nfs mount oci bash

I'm refactoring my project and I can't seem to get I'm prototyping a solution and I'm working with an scenario while trying to mount an NFS share on my Oracle Cloud Infrastructure (OCI) Compute instance. I have set up an NFS server on another OCI instance and can access it without any issues from the server itself. However, when I try to mount the NFS share from my client instance, I receive a `permission denied` behavior. Here’s the command I’m using to mount the NFS share: ```bash sudo mount -o vers=4.1 nfs-server-ip:/exported/path /mnt/nfs ``` The behavior I receive is: ``` mount.nfs: access denied by server while mounting nfs-server-ip:/exported/path ``` I checked the NFS server's `/etc/exports` configuration: ```plaintext /exported/path *(rw,sync,no_subtree_check) ``` I also verified that the firewall rules on both the NFS server and the client allow NFS traffic, and I can ping the NFS server from the client instance. Additionally, I ensured that the NFS service is running on the server by using: ```bash sudo systemctl status nfs-server ``` I’ve tried adjusting the export options to include specific client IPs rather than using `*` but that didn’t help. The NFS version is configured to be 4.1, and I’ve also tried using version 3 without success. I’m using OCI instances with Ubuntu 20.04. Are there additional configurations or best practices I should follow to resolve this permission denied scenario? Any insights would be greatly appreciated! Am I missing something obvious? I'm on CentOS using the latest version of Bash. Thanks for any help you can provide!