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?
Could you please provide a BSP (Linux image) version you are using?
I downloaded the
Linux Demo with LXDE 2.8b7 using the Toradex Easy Installer.
Please let me know if this answered your question. Thank you so much for replying to my original message!
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
Using connman’s D-Bus api would be the proper approach.