Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.