148 reputation
8
bio website
location Taipei City, Taiwan
age
visits member for 2 years, 4 months
seen Sep 17 at 7:53

Jun
11
awarded  Commentator
Jun
11
comment VirtualMachines lost after VirtualBox update
I just had the same issue that I described in superuser.com/questions/80192/…
Jun
11
answered How to recover Virtual Machines in Virtualbox?
Mar
3
revised How to check if cygwin mintty/bash is run as administrator?
Editing the purpose and potential solutions towards to have more usable question
Mar
3
comment How to check if cygwin mintty/bash is run as administrator?
Assuming there is no equivalent of UNIX id command in Windows, I accept this as a correct answer. At least running at command without any arguments does not appear to have any side effects. I am going to use this method in my .bashrc file from now on! Thanks for the hack.
Mar
3
awarded  Scholar
Mar
3
accepted How to check if cygwin mintty/bash is run as administrator?
Dec
9
revised How to fix the COM port name for USB serial port in Windows 7?
Edited header to reflect the problem more accurately
Oct
25
asked How to fix the COM port name for USB serial port in Windows 7?
Oct
15
answered Automatically mount Truecrypt volume on login using account password
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@Ramhound Weird, but charmingly so.
Oct
15
revised How to check if cygwin mintty/bash is run as administrator?
Quoted "run as administrator" because it is a verbatim quote from the right click context menu
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@Ramhound Interesting. I have a strong Unix/Linux background but I am quite a newbie/stranger in Windows world. But this increasingly interesting conversation is perhaps a little bit out of scope in superuser.com. Maybe I should search/ask stackoverflow.com for advice where I could study the central concepts that the Windows GUI and help files so hard tries to obfuscate with its labyrinths of mouse clicking pathways and step-by-step instructions that make it difficult to see the forest from the trees and branches and leaves. :-)
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@JanHudec That ConEmu sounds wonderful. Some time ago I tried searching something similar but could not quite find one. Thanks so much for the tip. I am definitively going to try it out.
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@Ramhound You are right that my original problem (distinguishing the administrator terminal window) that I already had narrowed down into this question could be solved by making a short cut for mintty that 1. runs as administrator, 2. uses different configuration file with differing color settings and 3. uses an alternative icon. If you describe to general public how to create this, I will give you an upvote (unless you say in your answer that it cannot be done within a script :-).
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@Ramhound So you imply the presence of Administrators group is not standard and portable way to distinguish if running as adminstrator in Windows? (Above when saying "group" I am using the concept of cygwin emulation layer, I am not sure what the Microsoft term is for this Adminstrators.) I would like to learn more about this.
Oct
15
awarded  Editor
Oct
15
awarded  Student
Oct
15
revised How to check if cygwin mintty/bash is run as administrator?
Unsatisfactory solution 1 put in parenthesis because it is so unlikeable (but descriptive in showing that there are many many possibilities)
Oct
15
comment How to check if cygwin mintty/bash is run as administrator?
@Ramhound If you had read my (overly verbose?) question, you would have been shocked already three times! Just I am not sure if the two methods (2 and 3; forget the method 1, attempting to create a file to some more protected location) are portable, and I am craving for something more elegant.