wsl profile cannot have startingDirectory set to folder whose contents are unreadable #15758

Open
opened 2026-01-31 04:47:37 +00:00 by claunia · 0 comments
Owner

Originally created by @jsb19gh on GitHub (Nov 2, 2021).

Windows Terminal version (or Windows build number)

1.11.2921.0

Other Software

No response

Steps to reproduce

Create a profile with

"commandline": "wsl -u root"
"startingDirectory": "\\\\wsl$\\Distro\\root"

Open a tab from that profile. Assumption is that /root is only readable by root in the Linux distribution.

Expected Behavior

A root prompt in Distro, with /root as the current directory.

Actual Behavior

No interactive prompt, and terminal tab has the text:

Access is denied.

[process exited with code 4294967295]

More info:
This worked in earlier Windows Terminal versions.
If I set that startingDirectory for a powershell tab, it works fine.
If I set the startingDirectory to "\\\\wsl$\\Distro", it works fine

Originally created by @jsb19gh on GitHub (Nov 2, 2021). ### Windows Terminal version (or Windows build number) 1.11.2921.0 ### Other Software _No response_ ### Steps to reproduce Create a profile with ``` "commandline": "wsl -u root" "startingDirectory": "\\\\wsl$\\Distro\\root" ``` Open a tab from that profile. Assumption is that /root is only readable by root in the Linux distribution. ### Expected Behavior A root prompt in Distro, with `/root` as the current directory. ### Actual Behavior No interactive prompt, and terminal tab has the text: ``` Access is denied. [process exited with code 4294967295] ``` More info: This worked in earlier Windows Terminal versions. If I set that startingDirectory for a powershell tab, it works fine. If I set the startingDirectory to `"\\\\wsl$\\Distro"`, it works fine
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15758