LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2003, 05:31 AM   #1
CatSC
Member
 
Registered: Oct 2003
Location: New Zealand, Wellington
Distribution: Red Hat 9, Gentoo 1.4, Vector 4.0
Posts: 74

Rep: Reputation: 15
'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
 
Old 11-12-2003, 05:51 AM   #2
LOUDSilence
Member
 
Registered: Oct 2003
Location: Sydney
Distribution: Red Hat 8
Posts: 77

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
root-like permissions ? bbbb Linux - Newbie 7 11-12-2005 07:03 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 05:34 AM
root permissions wass29 Slackware 3 05-10-2004 11:58 AM
Root permissions frostbite Linux - Newbie 7 08-06-2003 09:03 AM
root permissions explorer Linux - Newbie 3 03-06-2003 05:17 PM


All times are GMT -5. The time now is 01:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration