On May 31 22:07, GrahamC wrote:
> It used to be possible to test for the presence of 544 in the bash array 
> GROUPS or the output of the /usr/bin/id program to determine when running as 
> administrator.
> 
> Since updating to the latest version this no longer works.
> 
> E.g. while running as administrator:
> 
> 
> $ echo ${GROUPS[@]}
> 197121 114 197610 0 559 545 4 66049 11 15 113 4095 66048 262154 405504
> 
> 
> $ /usr/bin/id
> uid=1001(xxx) gid=197121(None) groups=197121(None),114(Local account
> and member of Administrators
> group),197610(HomeUsers),0(root),559(Performance Log
                           ^^^^^^^
                           This is the problem.

Please remove the /etc/group file, or at least remove the entry for root.
If you missed the changes in Cygwin in terms of account handling, which
were developed and tested by the community during almost all of 2014, 
see https://cygwin.com/cygwin-ug-net/ntsec.html


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpM9vpiHJvsb.pgp
Description: PGP signature

Reply via email to