I've set up a file server using nfs4 and included the following lines in my file-server's /etc/exports file:
Code:
/share 192.168.0.30(rw) 192.168.0.40(rw)
/share/datalib 192.168.0.30(rw) 192.168.0.40(rw)
Now, as a regular user on the 192.168.0.40 machine, I can read and write to any file anywhere in the shared directory tree, even in levels beyond the two levels listed in the server's exports file.
However, as root user, I have permission only to read or write to files immediately in those two specified directories. When I try to list files one level beyond those two, I get a "Permission denied" error message.
The relevant UIDs and GIDs are identical on both machines. And even aside from that, I thought the root user should have universal permissions, no?
What could be going on to prevent the root user having access to files that a regular user can fully manipulate?