Skip to content

Instantly share code, notes, and snippets.

View boegh's full-sized avatar

Henrik Boegh boegh

View GitHub Profile
@ahmetozer
ahmetozer / Fix-Screen-Permission-Issue-on-Windows10-WSL.md
Created April 18, 2020 13:50
Fix "Cannot make directory '/run/screen': Permission denied" error

I applied permission to /run/screen folder but every restart requires this fix. So I change the SCREENDIR to home folder. To fix for all users at WSL run below command.

echo 'export SCREENDIR="$HOME/.screen"'

if you start screen outside of bash like command line or scheduled task run with environment variables.

C:\Users\ahmet>bash -c 'SCREENDIR=$HOME/.screen screen'