Restrict systemd service accessing files

131 Views Asked by At

I am using Ubuntu 18.04. I am creating systemd service to start python code. But, the problem is that, I don't want my python code to have access to other directories except where it is running. It would be good to restrict systemd service or python to have access to another directories. I am worried that other files on Ubuntu server may be deleted or corrupted. Thank you in advance.

0

There are 0 best solutions below