This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to determine if a shell is running as Administrator?
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin at cygwin dot com
- Date: Thu, 05 Feb 2015 15:28:53 +0100
- Subject: Re: how to determine if a shell is running as Administrator?
- Authentication-results: sourceware.org; auth=none
- References: <slc6da9aq8g9e7h0aegafhfa86eahfd53p at 4ax dot com> <20150205100349 dot GS2635 at calimero dot vinschen dot de> <gjubtwz05tno dot fsf at W0144758 dot usac dot mmm dot com>
J. David Boyd writes:
> This doesn't seem to tell me if my shell has been started with 'Run As
> Administrator', it just tells me if my user is contained in the Administrator
> group.
No, you're not in that group unless you have actual administrator
privileges.
> I can start a cygwin shell, and start a cygwin shell with run as admin, and I
> get the same results from the above command.
Then you have UAC switched off or the place you're starting the cygwin
shell from already is elevated.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple