delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/02/29/16:28:41

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY
X-Spam-Check-By: sourceware.org
Message-ID: <4F4E9862.4060108@t-online.de>
Date: Wed, 29 Feb 2012 22:28:02 +0100
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Firefox/10.0.2 SeaMonkey/2.7.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: [PATCH] base-files-4.0.9: Change prompt if running with admin rights
References: <4F4BB942 DOT 80906 AT t-online DOT de> <20120228194715 DOT GB6761 AT jethro DOT local DOT lan>
In-Reply-To: <20120228194715.GB6761@jethro.local.lan>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

David Sastre Medina wrote:
> On Mon, Feb 27, 2012 at 06:11:30PM +0100, Christian Franke wrote:
>> This is an updated version of:
>> http://cygwin.com/ml/cygwin/2011-04/msg00020.html
>> Uses the detection method suggested here:
>> http://cygwin.com/ml/cygwin/2011-04/msg00372.html
>>
>> Tested with bash, dash, mksh, posh, and zsh (with symlink
>> /etc/zprofile ->  profile) on cygwin 1.7.11-1 and Win7 x64.
> I've revisited this idea several times, with the purpose of adding
> /usr/sbin to the PATH and coloring the prompt differently (red?) for admins.

Makes sense. Please also include the '#' as the very old & very well 
known root prompt.

A Cygwin shell run as admin has more *effective* rights than a Windows 
console run admin. So there should be a "be careful" sign.


> I'll see if I can come up with some variation on your patch that does
> all this.
>

Thanks,
Christian


--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019