Hi@all,
I am currently testing NFS4 with the UCS5. I may also have a problem understanding.
If I export a file system with the option ‘no_root_squash’ on the NFS server, I should have access to this mount on the client as the user ‘root’, right?
I don’t know if the file system below the export is relevant. I mention it because I have always used EXT4. But now I use XFS. The mount options of the home partition on the server are ‘default’.
UCS-Server 5
/etc/exports
"/home" -rw,no_root_squash,sync,no_subtree_check,sec=krb5i
Linuxmint 20.3
On the client, I mount the export without any special options. I always do this at the beginning to see what the client and server negotiate with each other.
mount -t nfs4 -o sec=krb5i srv01.gehr.lan:/home /home
As a result, the client mounts the export as follows:
srv01.gehr.lan:/home/s.gehr on /home/s.gehr type nfs (rw,relatime,vers=3,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=krb5i,mountaddr=192.168.83.5,mountvers=3,mountport=32767,mountproto=udp,local_lock=none,addr=192.168.83.5)
If I open a shell on the client and become root with ‘su’, I cannot see the contents of the user homes.
root@pc001:/home/s.gehr# ls
ls: Öffnen von Verzeichnis '.' nicht möglich: Keine Berechtigung
The option ‘no_root_squash’ should allow exactly that, right?
with best
sven