LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-26-2005, 11:04 AM   #1
knoxlinuxuser
Member
 
Registered: Feb 2005
Location: Knoxville, Tennessee
Distribution: SuSE 9.0, Gentoo 2005.0, Fedora Core 4
Posts: 42

Rep: Reputation: 15
.bash_profile as root


Hello,

I am trying to configure my .bash_profile to run

"pump -i eth1"

but the pump command requires root permissions.

Now, to my quesiton, how can you run the pump command from the .bash_profile without being logged in as root?
 
Old 02-26-2005, 11:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
why would you want to do that? you mean each time you login you requset a new IP? each time you su to the user... new IP... each terminal you open ... new IP?

that's just not a good place to do that at all... there will be a better way someone will suggest if you explain your problem, not what you believe the solution to your problem is...
 
Old 02-26-2005, 11:27 AM   #3
knoxlinuxuser
Member
 
Registered: Feb 2005
Location: Knoxville, Tennessee
Distribution: SuSE 9.0, Gentoo 2005.0, Fedora Core 4
Posts: 42

Original Poster
Rep: Reputation: 15
I can't find another way than to use pump to make my internet connection work. I'm tired of having to do it manually every time my computer starts, is there a way around this.

Last edited by knoxlinuxuser; 02-26-2005 at 11:29 AM.
 
Old 02-26-2005, 11:48 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
ok, well if this is knoppix, then normally it should request one as it detects devices... i assume that's not working though.

I'm not saying this is necessarily exactly what you should be doing, but you can easily just create a normal /etc/rc.local script, which AFAIK, debian / knoppix doesn't use by default, but most Redhat derviatives do... add you pump command to that file (create if need be) and then symlink it to /etc/init.d/rc5.d/S99local for an X based login, ad ..rc3.d.. for a terminal login boot. this will get executed ONCE and ONCE only when the system boots up. clean and effective. quite why the knoppix network initscript isn't picking up an IP for you i couldn't say... Knoppix always seems like an odd choice of distro to insatll as a desktop. great for a boot cd, but long term.. nah.
 
  


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
need root .bashrc .bash_profile darkRoom Slackware 5 04-30-2005 04:24 AM
where is ~/.bash_profile? Jskill007 Slackware 4 09-18-2004 12:04 AM
.bash_profile overwritten on login to root Awesome Dude Linux - Newbie 1 08-23-2004 03:41 PM
Deleted the /root/.bash_profile, looking for default bparke Linux - Newbie 4 11-19-2003 07:12 PM
.bash_profile sikandar Linux - Software 9 08-31-2003 11:01 AM


All times are GMT -5. The time now is 06:33 PM.

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