LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-11-2008, 12:21 PM   #1
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Rep: Reputation: 0
multiple nic's


Hi-

I need to specify the network interface at the user level...so that all network traffic of certain users go through a different nic. Any help would be appreciated.

Thanks.
-matt o.
 
Old 12-11-2008, 12:26 PM   #2
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 2,281

Rep: Reputation: 403Reputation: 403Reputation: 403Reputation: 403Reputation: 403
Homework
 
Old 12-11-2008, 01:33 PM   #3
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Is school in session or something. I have been seeing a lot of these posts that ask the most random questions and don't really give any background information and anything that even comes close to saying here is what I have attempted or here is what google has said but I don't understand.
 
Old 12-11-2008, 01:56 PM   #4
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Original Poster
Rep: Reputation: 0
well i have 2 interfaces, eth0 and eth1. I want user bob to use eth0 by default and amy to use eth1 by default.

Thanks.
-matt o.

Last edited by moverholt; 12-11-2008 at 02:00 PM.
 
Old 12-11-2008, 02:03 PM   #5
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Well the best I got at this moment is for you to create a script that launches at user startup that will shutdown one or the other based on who logs in. However I don't see the purpose of why you would even want to do this.
 
Old 12-11-2008, 02:12 PM   #6
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Original Poster
Rep: Reputation: 0
i would need both users running at the same time. i do have a reason, but it doesn't matter.

any ideas that could put me on the right path would be appreciated.

thanks.
-matt o.
 
Old 12-11-2008, 02:16 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
I'd think you would want to specify a different default router for each user. I haven't experimented with that, but that is how I would approach it.
 
Old 12-11-2008, 02:26 PM   #8
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Original Poster
Rep: Reputation: 0
good idea, i'll look into and let you know how it goes.

thx.

-matt
 
Old 12-11-2008, 02:31 PM   #9
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by anomie View Post
I'd think you would want to specify a different default router for each user. I haven't experimented with that, but that is how I would approach it.
But that still doesn't work as that is not limiting which ethX the user can use. If say Ann still has access to both eth adapters then she can access both routed networks.
 
Old 12-11-2008, 02:34 PM   #10
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Original Poster
Rep: Reputation: 0
i could live with ann still having access, just not using.

basically i am trying to box in a bunch of scripts that access the network into a single user instead of searching around the application level (100's of curl's, wget's, and random perl libs), where i'm likely to miss one.

thanks.
-matt
 
Old 12-11-2008, 02:42 PM   #11
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Quote:
Originally Posted by moverholt View Post
i could live with ann still having access, just not using.

basically i am trying to box in a bunch of scripts that access the network into a single user instead of searching around the application level (100's of curl's, wget's, and random perl libs), where i'm likely to miss one.

thanks.
-matt
Ok so that is a lot different than what you are actually asking in your first post. I would just use the setuid bit on all the scripts to the same person then activate them at boot time. with the setuid they should all launch as that user.
 
Old 12-11-2008, 02:56 PM   #12
moverholt
LQ Newbie
 
Registered: Dec 2008
Location: chicago, il
Distribution: Centos 5.0
Posts: 6

Original Poster
Rep: Reputation: 0
sorry, i am new here.

i want the group of scripts to use a different internet connection. instead of going through all the scripts and perl libs and specifying the network interface in 100's of locations i thought i could specify it at the user level.

-matt
 
  


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
Issue with resolv.conf : Multiple DNS with two NIC's lank23 Linux - Networking 4 01-30-2007 09:38 PM
networking with multiple nic's Mandle Linux - Networking 6 11-13-2006 10:27 AM
2 nic's kristof_v Linux - Networking 2 08-18-2006 10:25 AM
assigning ip's to multiple NIC's in a Fedora Core 4 box vinnypie Linux - Networking 4 11-23-2005 03:21 PM
Help with multiple NIC's gilinko Slackware 9 07-05-2002 10:33 AM


All times are GMT -5. The time now is 11:36 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