delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/12/06/16:54:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=1.8 required=5.0 tests=AWL,BAYES_00,BOTNET,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE
X-Spam-Check-By: sourceware.org
Message-id: <50C113E9.1060805@cygwin.com>
Date: Thu, 06 Dec 2012 16:53:45 -0500
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-to: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
MIME-version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Bug in Cygwin Windows 8 group permissions
References: <CAMgm8F3N-TnySJUNj0WQc8nvyz+KY7ze=9_aS+oXPB-kC5RK8Q AT mail DOT gmail DOT com> <CAMgm8F0G0rQ-to6Uy3pF=u52XBAODdSufE3nmt72gqgN6tyDXA AT mail DOT gmail DOT com> <50C103F6 DOT 7020309 AT gmail DOT com> <CAMgm8F2FP7qdc8=Sd+12fB5L-wOEZxUC_G=RT7f3eZJk4zikzA AT mail DOT gmail DOT com> <50C10B52 DOT 8090504 AT gmail DOT com> <CAMgm8F1V518vDMRWjthQDfOLt=aywwRrs4YZXBpGLTQ7EwDxcA AT mail DOT gmail DOT com>
In-reply-to: <CAMgm8F1V518vDMRWjthQDfOLt=aywwRrs4YZXBpGLTQ7EwDxcA@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 12/6/2012 4:24 PM, Chaz Littlejohn wrote:
> On Thu, Dec 6, 2012 at 4:17 PM,
>> On 12/6/2012 10:10 PM, Chaz Littlejohn wrote:
>>>
>>> On 12/6/2012 9:15 PM, Chaz Littlejohn wrote:
>>>>
>>>>
>>>> a workaround was already available on first link you provided
>>>>
>>>>     chgrp -R Users ~/.ssh
>>>>
>>>
>>> I had tried this earlier running the chgrp.exe, but it threw an error
>>> saying unknown group 'Users'. I assume this is because when chgrp.exe
>>> is located outside of the default cygwin directory, it doesn't know
>>> where to find the group file. I also attempted to create a separate
>>> file where i'd dump the contents of my private key into, but that file
>>> seems to also be afflicted by this permissions problem of having 660
>>> with no group set.
>>
>>
>> have you a /etc/group file ?
>>
> I have one in the cygwin install directory. It's not clear where the
> /etc/group file should be put if chgrp.exe is being executed via a
> shell command and is located outside the cygwin directory (in this
> case it's going to be located in an application folder in
> %LOCALAPPDATA%).

The simplest way to determine where Cygwin is routed is to look at
what's returned from the 'mount' command.  For detailed information
on how Cygwin sets up the mount table, see:

<http://cygwin.com/cygwin-ug-net/using.html#mount-table>

To answer your specific question though, one level up from where
you put 'cygwin1.dll' would be considered the root.  'etc' would
be relative to that.

-- 
Larry

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019