Published on

Fixing issue Directory /run/screen must have mode 777 on Ubuntu WSL

Authors

Fixing the issue: Directory '/run/screen' must have mode 777.

This appeared to be caused by screen being installed against sudo and not the current user's group/s.

It turns out the best way to fix this is simply reinstall screen on Ubuntu WSL (Windows Linux Subsystem) as below:

sudo apt-get --reinstall install screen

This blog suggested this fix which worked perfectly.

Before this, I tried to make this folder executable and a bunch of other things that did not work. Running screen as sudo did work but this is not ideal.