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

2011-04-26 Thread Christian Franke
Christian Franke wrote: A test script for all shells is attached. Run with admin rights. Requires cygdrop from cygutils package. Now it is attached :-) #!/bin/sh #f=/proc/registry/HKEY_LOCAL_MACHINE/SAM/SAM f=/proc/registry/HKEY_LOCAL_MACHINE/SECURITY /bin/test -r $f || echo "tes

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

2011-04-26 Thread Christian Franke
Daniel Colascione wrote: On 4/24/11 9:39 AM, Christian Franke wrote: 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).

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

2011-04-25 Thread David Sastre
On Sun, Apr 24, 2011 at 06:39:12PM +0200, Christian Franke wrote: > 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). Trying to d

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

2011-04-24 Thread Daniel Colascione
On 4/24/11 9:39 AM, Christian Franke wrote: > 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

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

2011-04-24 Thread Christian Franke
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 possi

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

2011-04-01 Thread Christian Franke
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 di