I wrote a python script to launch several java applications. I want their PIDs to be filed into /var/run/coma
. Therefore I wrote the script and gave it 777 permissions just for testing first.
-rwxrwxrwx 1 root root 3575 Feb 12 18:20 coma-startup.py
When I launch this script as another user and it executes code to create a file into the mentioned dir I receive the following
PermissionError: [Errno 13] Permission denied: '/var/run/coma/coma-system.pid'
I don't understand this? The script should execute with root privileges in my opinion. What do I not understand here?