On Wed, 2022-08-24 at 17:23 +0000, David T-G wrote:
Scott, et al --
...and then Scott Bradnick said... % On Wed, 2022-08-24 at 16:37 +0000, David T-G wrote: % > Hi, all -- % > % > 1) How does the WSL app specify the user account as which to run? % > 2) How can I get sshd running to connect to my new instance? ... % % 1) There are [probably] a few options, but I don't follow what you're trying to % do in this explanation. You _don't_ want to use the user you create? At all, or % with sshd?
The UID was wrong. I want it to match my UID across the rest of my machines. If I could let YaST2 create it at initialization and then change it, that would be just as good.
% % 2) I do this regularly when booted into Windows 11. I basically have a 'startup ... % user (I like shiny, new things), but I see NO reason why sshd/runit wouldn't % also work in Leap 15.4. [snip]
Cool! Tips and pointers, please :-)
Thanks & HAND
:-D
So you're saying the default UID:1000 GID:100 doesn't work for you? Understandable that 1000 isn't universal, but what's stopping you for changing it 1st thing? ``` PS> wsl -u root -d openSUSE-Leap-15.4 #: usermod -u <some UID #> <your username> ``` https://docs.microsoft.com/en-us/windows/wsl/wsl-config You can use /etc/wsl.conf to set a default user if it starts using root every time going forward: ``` [user] default = <your username> ``` I'm happy to go over runit, and while it isn't complicated to use - it might be complicated to explain, but if you think of it as an alternative systemd w/ it's own setup and run commands, it's not difficult to wrap you head around. I put it together from other examples and gleaning things from systemd files. Here's the resources I have for it: https://github.com/sbradnick/runit https://build.opensuse.org/package/show/home:sbradnick/runit I'd suggest to read through that to familiarize yourself with it and maybe we can discuss it. I don't have it building for Leap 15.4 (or building at all since it hasn't been something that's changed or needed to), which I can do if you're not familiar w/ branching and building things in OBS; nothing would need to change so it'd be a branch, set to build for 15.4 and build scenario. The sshd setup is explained a bit here[1] [1]: https://build.opensuse.org/package/view_file/home:sbradnick/runit/README.SUS... -- ~ Scott Bradnick |- Windows Subsystem for Linux (WSL) Developer |-- Tumbleweed: |--- Dell Precision 5540 [NVIDIA Quadro T1000] (x86_64) |--- O-DROID H2+ [UHD Graphics 600] (x86_64) |--- IceWhale ZimaBoard 832 [Intel HD Graphics 500] (x86_64) |--- 2x Raspberry Pi 4 Model B Rev 1.2 (aarch64) |--- 1x Raspberry Pi 3 Model B Rev 1.2 (aarch64) |--- WinBook TW100 (x86_64) https://keys.openpgp.org/ :: DBC5AA9A2D2BAEBC