I'm writing software for an embedded linux system and I'm using an NFS share as root directory. The root filesystem resides in
/srv/nfs/rootfs, and it is exported using the following
The content of
/srv/nfs/rootfs need to be owned by root, otherwise the target system will have trouble mounting
/dev. However, I need to be able to modify the files in
/srv/nfs/rootfs as regular user, and I don't want to add
sudo to my scripts or run sudo on every other command. Is there some way of configuring NFS to fake root privileges on
/srv/nfs/rootfs? I was thinking of trying to run nfs using fakeroot, but that does not seem like the best solution to me.