Modifying Routing Tables on the fly
I am trying to modify a route table dependant on which user logs in through
a dial-up connection.
viz: route add 192.168.1.1 eth0
I have already got
route add -net 192.168.0.0 netmask 255.255.0.0 lo
to stop other users getting to the local network (other than what they are
I have set up the user's login shell to run the file to add the route and
ip-down to remove the route.
I get the error message:
SIOCADDRT : Operation not permitted.
I gather this is because the user is not root.
Is there a way to safely change the routing table dependant on who logs in
Any help would be appreciated.
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
Trouble? e-mail to email@example.com .