Hello! I am building an application that will call a Python file in the command line (like "file.py -args"). But, when running the command, I get the following output:
bash/usr/bin 1: /home/skolmataspurangen/credentials.py: Permission denied
I get the same error in the terminal. I am using subprocess and "shell=True" in my script.
This error has also occurred when I am trying to write something to a regular text file. So, what I basically would like to know, (because sudo doesn´t work), is, how to run a command (preferably a task) as superuser?