BUG: ssh-host-config --yes fails with cygwin 1.7.33
Florian Friesdorf
flo@chaoflow.net
Thu Nov 6 12:33:00 GMT 2014
On Wed, Nov 05 2014, Corinna Vinschen wrote:
> On Nov 5 14:04, Corinna Vinschen wrote:
>> On Nov 5 10:11, Corinna Vinschen wrote:
>> > On Nov 4 19:48, Florian Friesdorf wrote:
>> > >
>> > > This is fixed with cygwin-1.7.33-0.4.
>> > >
>> > > However, the warning in the beginning still remains.
>> >
>> > Please discuss stuff like this on the cygwin AT cygwin DOT com mailing
>> > list. cygwin-apps is a mailing list for maintainers only. Thank you.
>> >
>> > Having said that, yeah, this warning is fallout from the fact that the
>> > csih helper script used by ssh-host-config is exclusively working with
>> > /etc/passwd and /etc/group files [...etc...]
>>
>> No, it's not. This is in fact from ssh-host-config which still
>> checks for groups in /etc/group. I had already tweaked the script
>> but apparently forgotten this one.
>>
>> I attached a new ssh-host-config to this mail for testing. Please
>> give it a try.
>
> No, use this one instead. I used a simpler method to list the groups.
The warning is still displayed despite mintty being run as
administrator. It now lists more groups,:
*** Warning: Running this script typically requires administrator privileges!
*** Warning: However, it seems your account does not have these privileges.
*** Warning: Here's the list of groups in your user token:
None
Local account and member of Administrators group
root
Users
REMOTE INTERACTIVE LOGON
INTERACTIVE
Authenticated Users
This Organization
Local account
CurrentSession
LOCAL
NTLM Authentication
High Mandatory Level
*** Warning: This usually means you're running this script from a non-admin
*** Warning: desktop session, or in a non-elevated shell under UAC control.
*** Warning: Make sure you have the appropriate privileges right now,
*** Warning: otherwise parts of this script will probably fail!
It still tests for id 544, which seems to have changed to 545:
# Make sure the user is running in an administrative context
admin=$(/usr/bin/id -G | /usr/bin/grep -Eq '\<544\>' && echo yes || echo no)
if [ "${admin}" != "yes" ]
$ id -G
197121 11 66048 66049 4 15 545 4095 0 405504
I double checked, this is with cygwin 1.7.33-0.4
Florian
--
Florian Friesdorf <flo@chaoflow.net>
GPG FPR: 7A13 5EEE 1421 9FC2 108D BAAF 38F8 99A3 0C45 F083
Jabber/XMPP: flo@chaoflow.net
IRC: chaoflow on freenode,ircnet,blafasel,OFTC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20141106/19a90b75/attachment.sig>
More information about the Cygwin-apps
mailing list