Me voici avec une erreur bizarre, je n’ai pas les droits d’écrire en root sur une partition NFS alors qu’elle est configurée et monté avec les droits RW, que ce soit sur la machine hôte (ci-dessous,192.168.1.67) ou un client (192.168.1.65).
La peinture est fraîche, je n’ai pas touché ou configuré autre chose que /etc/exports et lancé exportfs et le service systemd nfs-server.
Code : Tout sélectionner
sudo mount -t nfs -o vers=4 192.168.1.67:/ /mnt/; ls -l /mnt
total 60
drwxr-xr-x 2 root root 4096 20 oct. 21:23 bin
drwxr-xr-x 4 root root 4096 6 oct. 10:34 dev
drwxr-xr-x 5 root root 4096 14 oct. 15:41 etc
drwxr-xr-x 4 root root 4096 20 oct. 21:23 lib
lrwxrwxrwx 1 root root 3 20 oct. 20:25 lib32 -> lib
lrwxrwxrwx 1 root root 11 20 oct. 20:27 linuxrc -> bin/busybox
drwxr-xr-x 2 root root 4096 6 oct. 10:34 media
drwxr-xr-x 2 root root 4096 6 oct. 10:34 mnt
drwxr-xr-x 2 root root 4096 6 oct. 10:34 opt
drwxr-xr-x 2 root root 4096 6 oct. 10:34 proc
drwx------ 2 root root 4096 6 oct. 10:34 root
drwxr-xr-x 2 root root 4096 6 oct. 10:34 run
drwxr-xr-x 2 root root 4096 20 oct. 20:27 sbin
drwxr-xr-x 2 root root 4096 6 oct. 10:34 sys
drwxrwxrwt 2 root root 4096 6 oct. 10:34 tmp
drwxr-xr-x 6 root root 4096 20 oct. 21:23 usr
drwxr-xr-x 4 root root 4096 20 oct. 21:23 var
sudo touch /mnt/toto
touch: impossible de faire un touch '/mnt/toto': Permission non accordée
mount | grep /mnt
192.168.1.67:/ on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.67,local_lock=none,addr=192.168.1.67)
cat /etc/exports
/srv/nfs 192.168.1.65/24(rw,sync,crossmnt,fsid=0)