LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'route' and root permissions (https://www.linuxquestions.org/questions/linux-newbie-8/route-and-root-permissions-115131/)

CatSC 11-12-2003 04:31 AM

'route' and root permissions
 
Hello!
I'm using a dial-up modem to connect to internet, drivers for modem are installed properly
and to dial up I use Kppp. In Kppp on 'Upon connect' event I execute my little script to setup
default gateway the last line of this script is
'route add default gw $server_ip ppp0'

The problem that I have is that users other than root have no access to 'route'.
Can you plz help?
Thanks

LOUDSilence 11-12-2003 04:51 AM

you can issue the command
$su
it will ask for the password of the root user then you can run the script. type exit to drop super user privliges. and you should be right

you may have to execute the route command as
/sbin/route

By the way you can change user by using the su command aswell
$su Fred

Hope this helps


All times are GMT -5. The time now is 01:21 PM.