This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Achim Gratz <Stromeko at nexgo dot de>, cygwin at cygwin dot com
- Date: Thu, 10 Apr 2014 05:39:30 +0400
- Subject: Re: [PATCH] base-files-4.2-1: Change prompt if running with admin rights
- Authentication-results: sourceware.org; auth=none
- References: <53458036 dot 1010307 at t-online dot de> <877g6ys69r dot fsf at Rainer dot invalid>
- Reply-to: cygwin at cygwin dot com
Greetings, Achim Gratz!
> Christian Franke writes:
>> Attached is an updated version of:
>> https://sourceware.org/ml/cygwin/2012-02/msg00806.html
> I'll put this on hold until the AD integration has landed in Cygwin
> (which will require some larger changes anyway).
> Generally I'd prefer to move such things that depend on personal
> preferences like setting up prompts into profile.d where they are easier
> to change and maintain independently from core system functionality.
> Using the registry to check for administrative privileges is clever,
But indirect.
It does not guarantee, that a user have administrator rights, only that it has
access to the specified registry key.
> however I'm wondering why we shouldn't simply check via id (that's what
> I'm doing personally at the moment).
Unless there's a way to ask "if we're a part of <certain group>" or more
direct questions, it would involve much tinkering.
And I agree, that all tinkering needs to go into personal profile.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 10.04.2014, <04:31>
Sorry for my terrible english...
--
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