Does the "particular function" run a command using sudo?
If so, that is your problem. The Python script is already running as root as you ran it with sudo, so the second sudo is run as root and not "username" and won't work. It's not needed either.
If so, that is your problem. The Python script is already running as root as you ran it with sudo, so the second sudo is run as root and not "username" and won't work. It's not needed either.
Statistics: Posted by rpdom — Tue May 07, 2024 3:54 pm