Add user can access network interfaces
sudo gpasswd -a yourusername netdev
netdev : Group have permission to network, you can check other group with this command below
cat /etc/group
Or edit /etc/sudoers with your favorite editor like vim. Add this line under # User privilege specification:
yourusername ALL=(root) NOPASSWD :/sbin/ifconfig *
Last updated
Was this helpful?