I am trying to change the ip address using a daemon user. When I run '/sbin/ip' link set eth0, the daemon returns RTNETLINK answers: Operation not permitted.
Is there a way to change the ip address using the daemon user? Or a way to solve the RTNETLINK error?
Are you going to change IP address or indeed MAC address? Exactly what command are you using, all arguments please? As I understand ip adds/removes IP addresses using ip addr …, not ip link … , though perhaps I don’t know something. Anyway please check this if you didn’t see it yet: ip command cheat sheet