Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running "screen" without additional permissions on WSL

I'm trying to run the "screen" utility on Windows Subsystem for Linux on Windows 10 (Version 1703, OS Build 15063.483).

It seems that I need additional permissions to run it (it works if I "sudo" it), but I don't understand why that is necessary.

What is the recommended way to set this up?

Is there some reason why this isn't the default set up?

$ screen Cannot make directory '/var/run/screen': Permission denied 
like image 944
Julien Couvreur Avatar asked Aug 05 '17 01:08

Julien Couvreur


People also ask

Do you need admin rights to install WSL?

Administrator privileges in Windows are required to run OpenSSH in WSL. To run an OpenSSH server, run your WSL distribution (ie Ubuntu) or Windows Terminal as an administrator.

Does WSL run in the background?

Run in the Background:It runs the task in the background without a window which can't be used interactively. It also causes processes that are started by the task to operate in the background without a window.


1 Answers

From an answer on SuperUser I discovered that you have to run

sudo /etc/init.d/screen-cleanup start 

Then screen works fine for me.

like image 94
Tom Ellis Avatar answered Oct 02 '22 21:10

Tom Ellis