I have a script that runs pppd, dhclient, route, et cetera, to connect to my schools VPN.
Of course these things need to be run as root, but i would like to run it as a user. I tried making a link on the desktop that runs as root, but it doesnt set roots environment variables (i assume) because it gives me an error: dhclient not found, route not found, et cetera.
If i run it as su -c vpnconnect it gives me the same thing.
So, could i setuid root to the script (making sure it cant be writable by anyone other than root), or is there a way to make the environment variables set to roots when it runs it?
How do i setuid root anyhow?


