You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
While creating an Azure Linux 3.0 WSL instance, I noticed that I couldn't log in as the default (non-root) WSL user I created as root. The error messages I received were only somewhat helpful:
sh-5.2# sudo -u danderson -i
sudo: unable to change directory to /home/danderson: Permission denied
sudo: unable to execute /bin/bash: Permission denied
I found the problem to be restricted permissions on the root directory:
sh-5.2# ls -lad /
drwxr-x--- 18 root root 4096 Aug 6 15:48 /
When I changed the permissions to 0755, things worked correctly:
Describe the bug
While creating an Azure Linux 3.0 WSL instance, I noticed that I couldn't log in as the default (non-root) WSL user I created as
root
. The error messages I received were only somewhat helpful:I found the problem to be restricted permissions on the root directory:
When I changed the permissions to
0755
, things worked correctly:To Reproduce
Steps to reproduce the behavior:
sudo
to change to that userExpected behavior
I expect to be able to change to a non-root user.
The text was updated successfully, but these errors were encountered: