lxc start permissions for /run

mathx

Renowned Member
Jan 15, 2014
184
3
83
Screen users cant start screen because '/run/screen - no such directory'

But /run comes up 755 - so anything that doesnt suid cant put it's pid file or create its /run directory hierarchy. How to mitigate this?

/etc/init.d/screen-cleanup is supposed to create the directory properly, and used to just fine under openvz, but moving the container to lxc has caused this issue.
 
Last edited:
Hi,

what Distribution this container is?
And do you use privileged containers?
 
yes priviledged always because of many issues without it (such as postfix not working), distribution is debian 8.11

though I've seen it in debian 7 as well.

I should put some debug statements into the screen init.d script to see what's going on, its skipping creating it 775 as root:utmp /run/screen