-
Notifications
You must be signed in to change notification settings - Fork 855
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
/init does not create /var/run/utmp #573
Comments
Certain files that are laid down by init or updated by the system during runtime are not yet supported. We are evaluating which ones we will be adding in the future. Just out of curiosity, of what use are the errors/warnings typically available in utmp? |
Today i got an error message during apt-get upgrade which referenced the utmp file, just for the records (the full error message is no longer available since i cloded the terminal in the meantime). |
From #1761 (message), a runlevel can be established with something along the lines of:
The ask here is that WSL brand |
I was actually hoping this issue was mooted by WSL2 with its more full Linux support. I'm sad to see the wsl2 label applied. This issue is incredibly old with a seemingly 1-line fix possible. Is there a reason it's not getting addressed? |
Any progress? |
running the above on 5.4.72-microsoft-standard-WSL2, returns: running underlying issue: |
Try:
Which sets up the runlevel, not the login user. You don't need it for
That is by-design unless you start the terminal from a Windows shell. All of which is for illustration to set up |
That is because the
It is unlikely that you are having a bunch of user-permission issues due to a zero-thumbs-up feature request from 2016. Possible, but unlikely. |
and
Are you saying that this issue is not directly related to the problem of
|
we could run a startup script form a automation who runs the |
Also |
Could be this related to the fact that write or wall does not seem to work? |
you can use .bashrc to automaticly do the cmd |
An empty (0 bytes) /var/run/utmp file should be created by /init
This would help with certain failures and/or warning messages of various programs (not only /bin/who).
My current workaround: Use 'touch /var/run/utmp' in some "system startup script".
The text was updated successfully, but these errors were encountered: