[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Modifying Routing Tables on the fly



Hi,

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
supposed to)

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.

Thanks

Ian


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: