[PLUG] Allow User to Run Shell Script As root
Michael Rasmussen
michael at jamhome.us
Mon Mar 19 17:33:08 UTC 2012
On 2012-03-19 10:07, Rich Shepard wrote:
> On Mon, 19 Mar 2012, Tim wrote:
>
>> The goal of your changes seems really *odd*, to put it lightly.
>> Changing a system-wide DNS configuration when a single user logs
>> out.
>> Is your intent to restore the DNS configuration when she is no
>> longer
>> using the system?
>
> Now you understand ... almost. I need to have the system-wide DNS
> configuration set on that portable for use here. That's neither odd
> or
> strange. I suppose that if one runs all one's LANs using dhcp it's
> difficult
> to appreciate that other networks use static IP addresses.
This really should be controlled through the networking system.
I recall you're using Slackware. Does it have /etc/network/.../ifup.*
scripts?
Presumably when she's at the coffee shop the connection to your home
network is severed.
So there must be interface up and down events. Use those events to
modify /etc/resolv.conf.
--
Michael Rasmussen
http://www.jamhome.us/
Be Appropriate && Follow Your Curiosity
More information about the PLUG
mailing list