Again, not that this extra "security" is really needed on WSL anyway.Īs with JoL's answer, this will allow: cp ~/myfile ~w/Documents/Īnd with the caveat that this could cause problems in some corner cases, you can use useradd's -badname option to force it to accept ~ as a username: sudo useradd -badname -home-dir /mnt/c/Users/ "~" # or. That user would have the nologin shell, an expired password, and a locked account. This would create a user w with the same user id and group id (1000:1000) as the primary WSL user (just a personal preference on my part to avoid polluting the system with unnecessary uids/gids). International - PC layout, press Alt-N and then SpaceHow to find keys in General. On the British PC.2 answers Top answer: On U.S. However, "best practice" would probably be something more like: sudo useradd -no-user-group -non-unique -u 1000 -g 1000 -shell /sbin/nologin -f0 -e0 -home-dir /mnt/c/Users/ w On the US International PC layout, you press shift on the key next to the Z and then space. Alternatively, for windows users, press and hold the. For both Windows and Mac, press and hold the Shift key and hit once on the (Grave Accent) key. if you are prompted for a verification code, it’s for 2fa. To type the Tilde Symbol with a shortcut, obey the instructions below: First of all, place the insertion pointer where you need to type the Symbol. wsl -u root already gives you full access to everything in a WSL instance without a password).Ī simple. ssh is also available on port 443 using the address : this is useful if you’re on a limited public network that blocks non-http ports. There's really no downside to creating a user for this purpose on WSL, since there's no concept of user-level security (i.e. For example: since there is no letter p with a tilde on top, the key sequence p will produce the separate characters p. It also appears to be possible to use ~ for the username, resulting in a ~~ shortcut. Also, for a method of answer that works on most shells (at least Bash, Fish, Zsh, and even Dash), you can simply create a new user named w with a home directory pointing to your Windows' user profile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |