Directory '/var/run/screen' must have mode 777
zxccxz opened this issue · 3 comments
Hi,
After I run ./run.sh, I got error "Directory '/var/run/screen' must have mode 777"
How to solve this problem?
Thanks
It seems like Docker now requires to run in privileged mode for installing /usr/bin/screen with setgid utmp. Don't know about the reasons, but will add a workaround for it.
Please, don't ask me why b/c I've no idea. I'm posting this just in case it might help you and I've no pretention about the correctness.
A sh script in usr/local/usr/bin does:
cd full-path-where-foo-resides
screen -dmS a-given-name -L foo
2 linux/debian machines, with same permissions:
ls -alt /var/run/screen/ => drwxr-xr-x 3 root utmp 60 Aug 20 06:34 .
ls -alt /usr/bin/screen/ => -rwxr-sr-x 1 root utmp 369484 Oct 13 2012 /usr/bin/screen
Note that those are the perms that come from installing screen with no changes.
Debian machine #1 works, Debian machine #2 complains about mode, and bla-bla, and "screen is terminating"
The only difference between both is the PATH: machine #1 includes the current PATH ("."), #2 doesn't:
#1: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:. # period at the end
#2: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin: # no period at the end
I don't see why this should be related to this problem. Can you explain? I also think it is a different problem anyway, so you might want to open a new issue instead.