From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14485 invoked by alias); 24 Apr 2011 16:39:33 -0000 Received: (qmail 14477 invoked by uid 22791); 24 Apr 2011 16:39:32 -0000 X-SWARE-Spam-Status: No, hits=0.0 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY X-Spam-Check-By: sourceware.org Received: from mailout08.t-online.de (HELO mailout08.t-online.de) (194.25.134.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 24 Apr 2011 16:39:18 +0000 Received: from fwd15.aul.t-online.de (fwd15.aul.t-online.de ) by mailout08.t-online.de with smtp id 1QE2L5-0005wO-4x; Sun, 24 Apr 2011 18:39:15 +0200 Received: from [192.168.2.100] (XK5MpaZaQh2ickv6OruyXWbe9wiZeOeyVU1ZlaGOUvEnntc5o5dyRNZd5GuYwZygQW@[79.224.124.28]) by fwd15.aul.t-online.de with esmtp id 1QE2L2-0oSTQ00; Sun, 24 Apr 2011 18:39:12 +0200 Message-ID: <4DB45230.4080106@t-online.de> Date: Mon, 25 Apr 2011 11:32:00 -0000 From: Christian Franke User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.17) Gecko/20110123 SeaMonkey/2.0.12 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: [PATCH] base-files-4.0.6: Change prompt if running with admin rights References: <4D964392.6080809@t-online.de> In-Reply-To: <4D964392.6080809@t-online.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-04/txt/msg00343.txt.bz2 On 2011-04-01, Christian Franke wrote: > The attached patch for /etc/profile and /etc/bash.bashrc sets a root > prompt ('#' instead of '$' or '%') if the shell runs with admin rights > (local or domain admin group). > Any comment so far? Wrong list ? If this patch is not accepted: Would it be possible to change /etc/profile such that PS1 is set before /etc/profile.d scripts are run? This would allow to change the prompt in a local /etc/profile.d script. This worked with the old base-files 3.9 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