My Oracle Support Banner

NFS Share Does Not Allow "root" To Write Files "Read-Only Filesystem. Permission denied." While Other Users Can Write Into The Share (Doc ID 1639351.1)

Last updated on APRIL 23, 2020

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Oracle Cloud Infrastructure - Version N/A and later
Linux x86
Linux x86-64

Symptoms

No write access to NFS share for "root" even though the mount is "rw":

[root@nfsclient ~]# mount
/dev/sda3 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sda1 on /boot type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
10.x.x.45:/exports on /mnt type nfs (rw,addr=10.x.x.45)
[root@nfsclient ~]# cd /mnt/
[root@nfsclient mnt]# ls
test_file
[root@nfsclient mnt]# touch test_file
touch: cannot touch 'test_file': Read-only file system
[root@nfsclient mnt]# cp test_file test_file1
cp: cannot create regular file 'test_file1': Permission denied

 

Non-root users on the NFS client have R/W access.

 

Changes

Check NFS exported options on NFS Server:

Note the root_squash mount option. This option is set by default and must be disabled if not wanted.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.