From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 65105 invoked by alias); 10 Sep 2015 17:27:43 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 65096 invoked by uid 89); 10 Sep 2015 17:27:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 10 Sep 2015 17:27:41 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id B67CA91DB4 for ; Thu, 10 Sep 2015 17:27:39 +0000 (UTC) Received: from [10.3.113.15] ([10.3.113.15]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t8AHRdBn028465 for ; Thu, 10 Sep 2015 13:27:39 -0400 Subject: Re: Group Permissions on root folders problem (Windows 10 TP build 10061) To: cygwin@cygwin.com References: <20150616155843.GE31537@calimero.vinschen.de> <20150905155916.8403bea8d4f631c1f7a314e3@nifty.ne.jp> <20150906114444.GA27066@calimero.vinschen.de> <20150910200439.bf06449af4f1e6efcb76676e@nifty.ne.jp> <20150910172348.GB26699@calimero.vinschen.de> From: Eric Blake Openpgp: url=http://people.redhat.com/eblake/eblake.gpg Message-ID: <55F1BD86.1090001@redhat.com> Date: Thu, 10 Sep 2015 17:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150910172348.GB26699@calimero.vinschen.de> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="18xRrKsDFjTFQm4ujdK2uHsSFvrguDpN3" X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00150.txt.bz2 --18xRrKsDFjTFQm4ujdK2uHsSFvrguDpN3 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1356 On 09/10/2015 11:23 AM, Corinna Vinschen wrote: > On Sep 10 20:04, Takashi Yano wrote: >> Hi Corinna, >> >>> However, I have not the faintest idea why the cyg_server stuff doesn't >>> work. Anybody willing to track this down in the csih helper script? >> >> I had looked into csih script, and found a patch below solves >> the second problem. >>>> b) Creating sshd service using cyg_server >> >> --- cygwin-service-installation-helper.sh.orig 2015-02-24 04:57:56.00000= 0000 +0900 >> +++ cygwin-service-installation-helper.sh 2015-09-10 18:16:38.185042300 = +0900 >> @@ -2867,7 +2867,8 @@ >> if ! csih_use_file_etc "passwd" >> then >> # This test succeeds on domain member machines only, not on DCs. >> - if [ "\\\\${COMPUTERNAME,,*}" !=3D "${LOGONSERVER,,*}" ] >> + if [ "\\\\${COMPUTERNAME,,*}" !=3D "${LOGONSERVER,,*}" \ >> + -a "${LOGONSERVER}" !=3D "\\\\MicrosoftAccount" ] >> then >> # Lowercase of USERDOMAIN >> csih_PRIVILEGED_USERNAME=3D"${COMPUTERNAME,,*}+${username}" >=20 > Thanks a lot, much appreciated. Patch applied. [ ... -a ... ] is not portable; there are some inherently ambiguous situations that it cannot handle. POSIX recommends that you spell it [ ... ] && [ ... ] instead. --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --18xRrKsDFjTFQm4ujdK2uHsSFvrguDpN3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" Content-length: 604 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJV8b2GAAoJEKeha0olJ0NqKaQH/3Zugs6Xli3qrvlBEjIVT3pD p1rg0yB8XcAR594Gocy7ThCRsNXMLefKVmLfb/HOt3A6cicXhrsTIjqUnpAFkdcd JsmA3X4cVUzamDUKeTd2Itb0/O7iWKuut+k+m4d8hf3t1L7+VDoMD2Q6t1K476x6 E3KZ0Z9xC4MBCggSVrvo2pxLE1q8HxiFtxKkLOV5BKzIPu0rAC3kJy4EnqADpsWL VV76872S8P+oYjWDjz05b4Oz5rwGbd5WME82xR9m98RCNf2REyTc5NATLflQpL5a 5e9w+btNakWPkjXZ6BhdbBt4tbVZxluuzveQKqX61MNbrJ8RjhaZr/xMALCyme0= =pHXl -----END PGP SIGNATURE----- --18xRrKsDFjTFQm4ujdK2uHsSFvrguDpN3--