I recently got a new laptop, and have configured a DHCP server to give it an IP address, since DHCP is what I'm most likely to run into when I want to connect it to networks as I move around.
What I'd really like, though, is to be able to bring the network interface up as a normal user so I can not start the network at boot time and yet still not have to login as root every time I want to connect. (DHCP takes a long time to time out when I'm not connected.) RedHat had something called usernetctl, but I'm running Debian unstable.
PPP has something like I want, with the pon and poff commands, but I'm talking about ethernet. I'd really like something non-interactive, which I could call from a GUI button. Is there any good way to do this? I don't think it's possible (not to mention wise) to write setuid shell scripts... maybe I should write one in perl? Or is there a clean way to do this with something like sudo?