This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: ssh-host-config script sends /etc/passwd thru awk
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Corinna Vinschen <cygwin at cygwin dot com>, cygwin at cygwin dot com
- Date: Wed, 18 Feb 2015 16:35:49 +0300
- Subject: Re: ssh-host-config script sends /etc/passwd thru awk
- Authentication-results: sourceware.org; auth=none
- References: <4C148215-468D-469D-8060-B2010DF5E9A9 at etr-usa dot com> <20150217230230 dot GH8493 at calimero dot vinschen dot de> <62DA4A6B-8BA1-4676-B88F-42F6A3707AAD at etr-usa dot com> <20150218100809 dot GK8493 at calimero dot vinschen dot de> <94520364 dot 20150218150551 at yandex dot ru> <20150218130219 dot GP8493 at calimero dot vinschen dot de>
- Reply-to: cygwin at cygwin dot com
Greetings, Corinna Vinschen!
>> >> >> It seems that the ssh-host-config script isnât using Corinnaâs new
>> >> >> getent package yet.
>> >>
>> >> > Both scripts are using geten or mkpasswd/mkgroup.
>> >>
>> >> I was sure I looked into my local copies before answering that
>> >> question. Maybe I had old versions?
>> >>
>> >> An /etc/passwd containing only an sshd user certainly does seem like a
>> >> fresh install of 1.7.34, with the entry coming from ssh-*-config,
>> >> though, rather than an upgrade from pre-.34.
>>
>> > It's a bit confusing to talk about the Cygwin version when this is
>> > only about openssh and the csih package. I'm really busy with other
>> > stuff right now. I quickly scanned the ssh-*-config scripts again
>> > and they never write a passwd entry so, if anything, it's a problem
>> > in the csih helper script. Does anybody want to inspect
>> > /usr/share/csih/cygwin-service-installation-helper.sh for this?
>>
>> I'm on it, and the only place, where awk is ever called so far in relation to
>> these files is csih_use_file_etc
>>
>> So far it seems the user need to upgrade or reinstall his openssh package.
>> I'm off to try and set openssh on my newest VM, that have Cygwin first
>> installed after 1.7.34 release.
>> I'll be back.
> Looking forward to it.
You were right, the offender is the ssh-user-config, the check_user_homedir()
function.
The openssh is the 64-bit version, as in the stackexchange user's case.
The issue is interesting, though. When I first installed the openssh, it
offered me "prev" version of the package, even though I was installing from
the net. Re-running the installer picked the "current" version.
Setup.exe glitch?
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 18.02.2015, <16:17>
Sorry for my terrible english...