Error when running binary with root setuid under encrypted home directory
- by carestad
I'm using a VPN script for Juniper's Secure Access protocol form here, which executes a binary located under ~/.juniper_networks/network_connect/ncsvc with the following permissions:
-rws--s--x 1 root root 1225424 okt. 25 13:54 ncsvc
But when I do, I get the following error:
ncsvc> Failed to setuid to root. Error 1: Operation not permitted
Moving/copying the ~/.juniper_networks folder to e.g. /opt/juniper (with the same owner permissions), I don't get the error. In the forum thread at Ubuntuforums someone pointed out that it's probably because I have encrypted my /home and thus a "problem" with ecryptfs.
How can I fix this?