Calling dhclient as root works beautifully on my debian machine. However, I would like to allow some users to execute dhclient, too. So far, I have tried these two examples:
Example 1: When a normal user calls
..., the result is:
bash: dhclient: command not found
Example 2: I have also tried
..., and got
[...] can't create /var/lib/dhcp3/dhclient.leases: Permission denied SIOCSIFADDR: Permission denied SIOCSIFFLAGS: Permission denied SIOCSIFFLAGS: Permission denied Open a socket for LPF: Operation not permitted
Now... I have the feeling it is neither a good a idea (or would work) to chmod the entire /sbin directory for user access, nor does it appear to be elegant to chmod everything dhclient complains about in the second example above. What is the best and safest way to attack this issue?