Hi all,
I am an old Linux user, but new to nfs (actually it's nfs4). Now I'm running two Fedora 27/28 machines, and having trouble writing/modifying shared files/directories. It looks simple, but I cannot solve. So I need help. It *must* be simple.
Fedora 27 is the nfs server. Its /etc/exports is
Code:
/backup/Fedora *(rw)
I also ran "exportfs -ra".
I started nfs daemon as
Code:
# systemctl start nfs-server rpcbind
and mounted it on the same machine as
Code:
# mount -t nfs4 -o rw localhost:/backup/Fedora /mnt
It's simple, isn't it?
However, I cannot write anything on /mnt directory as root. Here I show
Code:
[root@Maverick tetsuji]# ls -al /mnt
total 79471728
drwxrwxr-x 2 root root 4096 Apr 17 14:34 .
dr-xr-xr-x. 21 root root 4096 Apr 13 16:05 ..
-rw-r--r-- 1 root root 16078482335 Apr 11 13:14 backup-2018-04-11-1225.tar.xz.gpg
-rw-r--r-- 1 root root 16349498763 Apr 12 21:31 backup-2018-04-12-2040.tar.xz.gpg
-rw-r--r-- 1 root root 16615554300 Apr 15 14:30 backup-2018-04-15-1247.tar.xz.gpg
-rw-r--r-- 1 root root 15833950080 Apr 16 10:53 backup-2018-04-16-1001.tar.xz.gpg
-rw-r--r-- 1 root root 16501530369 Apr 17 15:35 backup-2018-04-17-1434.tar.xz.gpg
[root@Maverick tetsuji]# cat > /mnt/ttt
bash: /mnt/ttt: Permission denied
root's write permission of /mnt looks fine, but it's impossible to write on /mnt. Like this, "chmod a+w /mnt/*" fails as
Code:
chmod: changing permissions of '/mnt/backup-2018-04-11-1225.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-12-2040.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-15-1247.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-16-1001.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-17-1434.tar.xz.gpg': Operation not permitted
I must be doing something wrong. What's wrong with my settings?
For reference, mount command shows
Code:
/dev/sde1 on /backup type ext4 (rw,relatime,x-systemd.device-timeout=0)
localhost:/backup/Fedora on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=sys,clientaddr=::1,local_lock=none,addr=::1)
Please help me!
Thanks in advance!