Aug-28-2019, 10:36 AM
(Aug-28-2019, 10:15 AM)DeaD_EyE Wrote: Why do you run your program as root?
Can you start it as normal user?
Sudo runs your programs in a different environment. If you have an activated virtuelenv, then it would be not used with sudo.
If you need access to resources like ttyUSB0, you can add the dialup group (is in many distributions the case) and after a new login, the user has the right to access ttyURB0. If you want to open a port below 1024, it's not possible without root access.
hello i want to run a command with sudo
because from the nature it cant be run as normal user
in fact i have make a subprocess with Popen and PIPES
so this is the problem
i need sudo cause the internal command in subprocess needs sudo
thanks again