On a Linux machine, I am trying to run the udhcpc command as non-root. I am getting the error udhcpc: socket: Operation not permitted. Is there any way to execute udhcpc as a simple user in Linux?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
|||||
|
migrated from stackoverflow.com May 23 '11 at 20:17
|
A dhcp client needs to bind an ICMP socket, and that requires root permissions¹. You can give a specific user permission to run dhcp through sudo. Run
¹ Or the appropriate capability, but they're not widespread yet. |
|||
|
|