I have a remote partition that i have mounted locally using NFS.
'mount' gives
192.168.3.1:/mnt/storage-pools/ on /pools type nfs (rw,addr=192.168.3.1)
On the server i have in exports:
/mnt/storage-pools *(rw,insecure,sync,no_subtree_check)
Then I try
touch /pools/test1
ls -lah
-rw-r--r-- 1 65534 65534 0 Dec 13 20:56 test1
chown root.root test1
chown: changing ownership of `test1': Operation not permitted
What am I missing ? Pulling my hairs out.
By default the
root_squash
export option is turned on, therefore NFS does not allow a root user from the client to perform operations as root on the server, instead mapping it to the user/group id specified byanonuid
andanongid
options (default=65534). This is configurable in/etc/exports
together with other export options.Read the section of the
exports(5)
concerning "root squashing":So you want:
(edited typo)