Run python programs without sudo in Debian wheezy
How can I type 'python pgmname.py' rather than 'sudo python pgmname.py' and have the program run. The program uses a GPIO serial port on a Beaglebone Black. I am running as an administrator, not as root.
Thanks. |
Try this:
Code:
python pgmname.py |
Quote:
You may want to see if it is possible to assign your regular user account to be part of the group associated with the device. If the group is root, then create a new group (e.g. gpio). Then assign your regular user to this new group, and finally change the group ownership of the device to the new group. For example: Code:
# Use at your own risk (as root or sudo) |
All times are GMT -5. The time now is 08:41 AM. |