LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 10: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, 10:25 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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, 10: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 10:29 AM.
 
Old 02-26-2005, 10:48 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:57 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
Open Source Consulting | Domain Registration