[PATCH] base-files-4.0.6: Change prompt if running with admin rights

Christian Franke Christian.Franke@t-online.de
Fri Apr 1 21:29:00 GMT 2011


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

Does not rely on a specific admin SID -> gid mapping in /etc/group.

Tested with bash, zsh, mksh, posh, dash.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: base-files-4.0-6-rootprompt.patch
Type: text/x-diff
Size: 2160 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110401/24ffbda1/attachment.bin>
-------------- next part --------------
--
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


More information about the Cygwin mailing list