Group 544 no longer shows in output of /usr/bin/id when a shell is run as administrator

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jun 1 08:40:00 GMT 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20150601/c053d23e/attachment.sig>


More information about the Cygwin mailing list