X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=Xzpv7HSl6BdZYtP7tWDoJ3VdelSgx5WMpClZuqLnfkF qgBsBA5BmZAsm94CL8JMLvlfx7GvAClGbg9NBw5r0zig5SdTCxKqv4dVDX2zP4ok aDLrYksOgpO7sOnjqb9G/LwmXxRNqtli2/vqOubdvUTj0NY1kwEMLqehpgL1zziU = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=default; bh=BABm0BZxQbsVfCBWbvyoLSTzra4=; b=t+hM2a4JZUb7hQlmi qfMOBd1mlI6BZTxuAbq4KaIXtTHsCLl4icTyTDIRskhqn+fDSJ0NS80WXjqEwQr6 D6PmtMig5sYxOt5iWrbomEasWimgwkjCqFG5p1q25dwPFsdt1k1C9OXtuaYiUcVS Tv3KtkdGpvx7kqih2/NkBccGJk= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_SORBS_DUL,SPF_PASS autolearn=ham version=3.3.2 X-HELO: conuserg002-v.nifty.com X-Nifty-SrcIP: [116.80.65.201] Date: Fri, 11 Sep 2015 19:04:14 +0900 From: Takashi Yano To: cygwin AT cygwin DOT com Subject: Re: Group Permissions on root folders problem (Windows 10 TP build 10061) Message-Id: <20150911190414.e77404dc09587954644ab65d@nifty.ne.jp> In-Reply-To: <20150906114444.GA27066@calimero.vinschen.de> References: <20150616155843 DOT GE31537 AT calimero DOT vinschen DOT de> <20150905155916 DOT 8403bea8d4f631c1f7a314e3 AT nifty DOT ne DOT jp> <20150906114444 DOT GA27066 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Hi Corinna, Regarding the first problem: > > a) Group permissions on root folders On Sun, 6 Sep 2015 13:44:44 +0200 Corinna Vinschen wrote: > The group permission problem is easy (and I'm wondering if it really was > such a bright idea to let user SID == group SID slip through in Cygwin, > rather tnan sticking to the former idea to change the group SID to > "Users" in this case). csih needs a patch to not check for the group > x bit if user SID == group SID. Do you intend a patch like this? I have confirmed that sshd is successfully installed and works nicely with this patch under a Microsoft Account. --- cygwin-service-installation-helper.sh.orig 2015-02-24 04:57:56.000000000 +0900 +++ cygwin-service-installation-helper.sh 2015-09-11 18:41:56.870882800 +0900 @@ -2442,6 +2442,8 @@ # ====================================================================== _csih_setup() { + local perms="d..x..x..[xt]" + csih_stacktrace "${@}" $_csih_trace if [ "$_csih_setup_already_called" -eq 0 ] @@ -2462,7 +2464,13 @@ csih_error "Problem with LocalSystem or Adminstrator IDs" fi - if ! csih_check_dir_perms "${LOCALSTATEDIR}" "d..x..x..[xt]" + if [ `/usr/bin/stat -c '%g' ${LOCALSTATEDIR}` -eq \ + `/usr/bin/stat -c '%u' ${LOCALSTATEDIR}` ] + then + perms="d..x.....[xt]" + fi + + if ! csih_check_dir_perms "${LOCALSTATEDIR}" "${perms}" then csih_error "Problem with ${LOCALSTATEDIR} directory. Exiting." fi -- Takashi Yano -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple