You are not logged in.
i have written a systemd service and hope it to run a screen command on boot, it works fine if the executor is root, but if i set it to another user, this shows up in journalctl: screen[17230]: Directory '/run/screens' must have mode 777.
it is definitely fine to set the directory to 777 but if i want to screen into the session, screen gives me this error: Directory '/run/screens' must have mode 755.
i tried to set /run/screens to 777 before the service starts and set it back to 755 after the service starts, by writing another 2 services, but it results in the service exiting because of the permission change, can anyone help me with this?
thank you for reading this!
Last edited by perrymok (2020-07-08 04:22:32)
Offline
https://wiki.archlinux.org/index.php/GN … th_systemd
What does your service look like and how do you start it?
Offline