Ubuntu – “Failed to setuid to root.” How to Establish a VPN network

12.04command linenetworkingpermissionsvpn

My university decided that the old VPN-network, which worked fine, wasn't good enough anymore and abandoned it. Now I have to establish a completely new VPN-network. My university provided me with a manual (in dutch) which I followed, but it doesn't work. Almost everything could be the problem but where I'm really stuck is at the part where terminal says:

open(/home/simon/.juniper_networks/network_connect/ncsvc.log) failed: Permission denied
ncsvc> Failed to setuid to root. Error 1: Operation not permitted

This happens everytime I enter the command that my university told me to execute:

'/usr/local/nc/ncsvc' ./ncsvc -h uvavpn.uva.nl -u < username > -r users -f uvavpn.uva.nl.der

I searched some fora looking for anwsers but since I'm a new Ubuntu user I didn't understand what was going on at all. Is there someone out there who knows how to solve this error? And can explain it to me in the easiest possible way?
I use Ubuntu 12.04, 32-bit.

I do hope that this is the right place to ask this question,
Thanks in advance, Simon

Best Answer

It's mostly a problem of your HOME-directory. It's encrypted, am I right? ;) So it is mounted with a "nosetuid" option, that prevents any SUID Operations to work as you expect them.

Solution: copy your network-connect directory somewhere else on your HDD i.e. /opt/juniperconnect, edit the junipernc-script to point to the new directory (called _jpath in the script /usr/local/bin/junipernc ), and then it works for me. I'm still using nc version 7.1 with Ubuntu 14.04 LTS.

Related Question