This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: how to drop administrator privileges?
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: cygwin at cygwin dot com
- Date: Thu, 26 Apr 2012 17:33:03 -0400
- Subject: Re: how to drop administrator privileges?
- References: <878vhiz0zw.fsf@Rainer.invalid>
- Reply-to: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
On 4/26/2012 4:33 PM, Achim Gratz wrote:
>
> I've recently had a test fail because I started it with administrator
> privileges (via the Administrator group). The test tried to write to a
> file that it set read-only before and of course as an administrator it
> was still able to write to it. So the test fail wasn't really that
> important, but I can't seem to find a way to drop administrator
> privileges once I have a shell opened with "run as administrator". Is
> there a command that will shed those rights for a sub-shell?
The "cygdrop.exe" utility is part of the cygutils package.
--
Chuck
--
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