Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-11 Thread Takashi Yano
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, >

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-11 Thread Corinna Vinschen
Hi Takashi, On Sep 11 19:04, Takashi Yano wrote: > 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

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-11 Thread Takashi Yano
Hi Corinna, On Fri, 11 Sep 2015 13:10:12 +0200 Corinna Vinschen wrote: > In theory, yes. The problem is just that checking the uid/gid equality > is not safe, given that you can easily create that via passwd/group > files. What I was thinking of is to convert the uid/gid values into > SIDs

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-11 Thread Corinna Vinschen
On Sep 11 21:33, Takashi Yano wrote: > Hi Corinna, > > On Fri, 11 Sep 2015 13:10:12 +0200 > Corinna Vinschen wrote: > > In theory, yes. The problem is just that checking the uid/gid equality > > is not safe, given that you can easily create that via passwd/group > > files. What I was thinking

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Takashi Yano
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 ---

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Corinna Vinschen
On Sep 10 11:27, Eric Blake wrote: > 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

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Eric Blake
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

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Corinna Vinschen
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. > > >

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Corinna Vinschen
On Sep 10 12:07, Ken Brown wrote: > On 9/10/2015 11:49 AM, David A Cobb wrote: > >On a Windows-10 host: when I use Cygwin *chown***or *chmod *to make > >permission changes, the next time I access the folder-tree from Windows > >Explorer Security tab, it complains that the Access Control List is >

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread David A Cobb
On 2015-09-05 02:59, Takashi Yano wrote: Hi Corinna, Is there any progress regarding this problem? I recently encountered the same situation. After some trials, I found this problem occurs if the account, on which cygwin setup is executed, is a Microsoft account. This does not occur if the

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Ken Brown
On 9/10/2015 11:49 AM, David A Cobb wrote: On a Windows-10 host: when I use Cygwin *chown***or *chmod *to make permission changes, the next time I access the folder-tree from Windows Explorer Security tab, it complains that the Access Control List is incorrectly ordered and that will cause

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Corinna Vinschen
On Sep 10 11:36, Eric Blake wrote: > On 09/10/2015 11:31 AM, Corinna Vinschen wrote: > > - if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" ] > + if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" \ > + -a "${LOGONSERVER}" != "MicrosoftAccount" ] >

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Eric Blake
On 09/10/2015 11:31 AM, Corinna Vinschen wrote: - if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" ] + if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" \ + -a "${LOGONSERVER}" != "MicrosoftAccount" ] then # Lowercase of USERDOMAIN

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Andrey Repin
Greetings, Eric Blake! > - if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" ] > + if [ "${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" \ > + -a "${LOGONSERVER}" != "MicrosoftAccount" ] >then ># Lowercase of USERDOMAIN >

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Eric Blake
On 09/10/2015 06:39 PM, Andrey Repin wrote: [ ... -a ... ] is not portable; there are some inherently ambiguous situations that it cannot handle. POSIX recommends that you spell it [ ... ] && [ ... ] instead. >>> > > If a script author did not quote the indirect references, it is

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread Andrey Repin
Greetings, Eric Blake! > [ ... -a ... ] is not portable; there are some inherently ambiguous > situations that it cannot handle. POSIX recommends that you spell it [ > ... ] && [ ... ] instead. >> >> If a script author did not quote the indirect references, it is their fault,

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-10 Thread David A Cobb
On 2015-09-10 12:07, Ken Brown wrote: On 9/10/2015 11:49 AM, David A Cobb wrote: On a Windows-10 host: when I use Cygwin *chown***or *chmod *to make permission changes, the next time I access the folder-tree from Windows Explorer Security tab, it complains that the Access Control List is

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-06 Thread Corinna Vinschen
On Sep 5 15:59, Takashi Yano wrote: > Hi Corinna, > > Is there any progress regarding this problem? Considering that I had entirely forgotton about it, no. > I recently encountered the same situation. After some trials, > I found this problem occurs if the account, on which cygwin > setup is

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-09-05 Thread Takashi Yano
Hi Corinna, Is there any progress regarding this problem? I recently encountered the same situation. After some trials, I found this problem occurs if the account, on which cygwin setup is executed, is a Microsoft account. This does not occur if the account is a local account. Above is true for

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-06-16 Thread Brian Buchanan
On Thu, 30 Apr 2015 at 10:24:50, Corinna Vinschen corinna-cygwin at cygwin dot com wrote: On Apr 29 10:45, Brian Buchanan wrote: I did a fresh cygwin-64 (setup-x86_64 version 2.870) install under build 10061 of Windows 10 Technical Preview. The group permissions in the root look wrong.

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-06-16 Thread Corinna Vinschen
On Jun 16 09:23, Brian Buchanan wrote: On Thu, 30 Apr 2015 at 10:24:50, Corinna Vinschen corinna-cygwin at cygwin dot com wrote: [...] Hmm, the permission test in the csih helper script is apparently not up to the task in your situation. As a workaround, you may want to change the group

Re: Group Permissions on root folders problem (Windows 10 TP build 10061)

2015-04-30 Thread Corinna Vinschen
On Apr 29 10:45, Brian Buchanan wrote: I did a fresh cygwin-64 (setup-x86_64 version 2.870) install under build 10061 of Windows 10 Technical Preview. The group permissions in the root look wrong. $ ls -lA / total 321 drwx---r-x+ 1 Brian Brian 0 Apr 29 10:31 bin dr-xr-xr-x