You are not logged in.

#1 2020-07-08 04:20:22

perrymok
Member
Registered: 2018-11-03
Posts: 4

systemd and screen permission contradicting

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

#2 2020-07-08 06:54:45

seth
Member
Registered: 2012-09-03
Posts: 60,969

Re: systemd and screen permission contradicting

https://wiki.archlinux.org/index.php/GN … th_systemd

What does your service look like and how do you start it?

Offline

Board footer

Powered by FluxBB