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

2015-05-31 Thread GrahamC
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 1

Re: how to determine if a shell is running as Administrator?

2015-02-05 Thread GrahamC
Andrew Schulman wrote: > What's a reliable and efficient way to determine programmatically if the > shell> that's running has elevated privileges? > Or if you prefer, how can I tell if the shell was started with "Run as > administrator"? If you search the mailing list archive for "Change PS1

Re: ls --color: special char in redirected output

2014-06-24 Thread GrahamC
On Monday, 23 June 2014, 14:57, Thomas Anderson wrote: > Hi, after a recent upgrade (maybe the 20) I have some problem with > special characters and ls --color > > For example: > > $ ls --color > file.txt  temp/ > > is ok > > but > > $ ls --color > ls.txt > > is not > > $ less ls.txt > > file.

Re: Change PS1 when running as administrator

2014-06-17 Thread GrahamC
> Frank Fesevur writes: >> When I run as administrator I change my PS1 from "$" to "#" with these >> line in ~/.bashrc. >> >> if id -Gn | grep -i Administrators > /dev/null > > If anything I'd check for membership in group 544.  "Administrators" > surely is one of these strings that gets localized

Change PS1 when running as administrator

2014-06-16 Thread GrahamC
On Monday, 16 June 2014, 12:25, Frank Fesevur wrote: > Hi, > > I recently bought a new home computer, so I switched from XP to Win81. > With Win81 every now and then I need to start cygwin as administrator > (right click shortcut or tile, run as administrator) to do things that > I can't do as

Python core dump depending on module import order with latest upgrade

2013-06-09 Thread GrahamC
Since the latest upgrade the following python program causes an "Aborted (core dumped)" error: #!/usr/bin/python import ctypes import zlib a = 1 If the order of imports is reversed (zlib then ctypes) no core dump error occurs. python2.7.exe.stackdump contains nothing of use: Stack trace: Frame

Re: Cygwin for Windows 8

2012-10-17 Thread GrahamC
On Oct 16 Corinna Vinschen wrote: > On Oct 15 23:55, GrahamC wrote: > > Another anomaly with disk drive partition devices (/dev/sdX1, /dev/sdX2 > > etc.) is the access control. > >   > > While the whole disk devices (/dev/sdX) can only be accessed when running

Re: Cygwin for Windows 8

2012-10-15 Thread GrahamC
Another anomaly with disk drive partition devices (/dev/sdX1, /dev/sdX2 etc.) is the access control.   While the whole disk devices (/dev/sdX) can only be accessed when running as administrator, the individual partition devices (/dev/sdX1, /dev/sdX2 etc.) can be both read and written without nee

Re: Cygwin for Windows 8

2012-10-15 Thread GrahamC
On 10/15/2012 Corinna Vinschen wrote: > On Oct 15 20:24, GrahamC wrote: > >  > > On 10/15/2012 Steve John wrote: > > > I am looking for cygwin tool in Windows 8 platform.  When i execute > > > the setup.exe (for installing cygwin in Windows 8 OS), i couldn

Re: Cygwin for Windows 8

2012-10-15 Thread GrahamC
On 10/15/2012 Steve John wrote: > I am looking for cygwin tool in Windows 8 platform.  When i execute > the setup.exe (for installing cygwin in Windows 8 OS), i couldn't see > any mirror sites for downloading cygwin tool in Windows 8 OS. Just > wondering if the tool is supported for Windows 8, if

Re: Displaying extended ASCII characters in output of octal dump as hexadecimal

2012-10-10 Thread GrahamC
On 10/9/2012 7:25 PM, Olumide wrote: > When I run octal dump (od) I notice that extended ASCII characters are > displayed incorrectly as ordinary characters. For example, the extended > characters 191, 196, and 218 are displayed as '?' , 'D' and 'Z' > respectively. I thought od was 'anding' the ea