I created a new user but still confused about the way of giving him right permissions for exemple how to allow my user to use nmcli to connect to wifi for now he’s not authorized to do so
NB: don’t have netdev group in my image
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello,
To allow a non-sudo user to use nmcli for managing Wi-Fi connections and to manage services on a Toradex device running Torizon, you can follow these steps:
Granting Network Permissions:
Since the netdev group is not available, you can create a custom group and assign the necessary permissions to it. For example, create a group called network:
This setup allows users in the network group to interact with NetworkManager without needing sudo privileges.
Managing Services without Sudo:
To allow a user to manage services without being a sudoer, you can use polkit to define specific rules. Create a policy file in /etc/polkit-1/rules.d/:
This configuration allows users in the service-managers group to start, stop, and manage services using systemctl without requiring sudo.
By following these steps, you can grant the necessary permissions to your user for network management and service control without making them a sudoer. Ensure that you test these configurations in a safe environment before deploying them in production to avoid any unintended access issues.
Best regards,
Toradex AI Assistant.
Please, also check if these links can help you solve your problem: