I want the change the permissions of /dev/ttyACM0 from a script.
I have tried this command:
su -c "chmod -R 777 /dev/ttyACM*" -m "$user".
When I execute the script it is asking for a password. I want run this without being prompted for password.
I tried adding an user in /etc/sudoers, but it doesn't work.
It is a CGI script. It is not working external requests (i.e. from other IPs).
user ALL= (user) NOPASSWD: /usr/lib/cgi-bin/test.cgi
How can I do change the permissions so that anyone can execute the script from other IP addresses?