Re: automatic root shell initialization

2003-07-01 Thread Pigeon
On Sat, Jun 28, 2003 at 12:31:55AM -0600, Bob Proulx wrote: > Derrick 'dman' Hudson wrote: > > Pigeon wrote: > > | ps a -f | grep $PPID | grep -v root | cut -f 1 -d ' ' > > | gives the username of the user who su'd. > > > > Beautiful! That's exactly what I wanted. > > Very nice. Just some tun

Re: automatic root shell initialization

2003-06-29 Thread Bob Proulx
Derrick 'dman' Hudson wrote: > Pigeon wrote: > | ps a -f | grep $PPID | grep -v root | cut -f 1 -d ' ' > | gives the username of the user who su'd. > > Beautiful! That's exactly what I wanted. Very nice. Just some tuning. The 'ps -p $PPID' option will trip out some of those processes. ps

Re: automatic root shell initialization

2003-06-25 Thread Derrick 'dman' Hudson
On Tue, Jun 24, 2003 at 10:09:51PM +0100, Pigeon wrote: | On Tue, Jun 24, 2003 at 01:36:18PM -0400, Derrick 'dman' Hudson wrote: | > On the ("new") debian server at work, my boss wants bash to be in | > 'emacs' mode when he su's to root. I work with 'vi' mode, however. | > Is there some way for th

Re: automatic root shell initialization

2003-06-24 Thread Pigeon
On Tue, Jun 24, 2003 at 01:36:18PM -0400, Derrick 'dman' Hudson wrote: > On the ("new") debian server at work, my boss wants bash to be in > 'emacs' mode when he su's to root. I work with 'vi' mode, however. > Is there some way for the .bashrc to recognize whether he su'd to root > or I did and se

Re: automatic root shell initialization

2003-06-24 Thread ZHAO Wei
On Wed, 2003-06-25 at 01:58, nori heikkinen wrote: > on Tue, 24 Jun 2003 01:36:18PM -0400, Derrick 'dman' Hudson insinuated: > > On the ("new") debian server at work, my boss wants bash to be in > > 'emacs' mode when he su's to root. I work with 'vi' mode, however. > > Is there some way for the .b

Re: automatic root shell initialization

2003-06-24 Thread Vineet Kumar
* Derrick 'dman' Hudson ([EMAIL PROTECTED]) [030624 10:56]: > On the ("new") debian server at work, my boss wants bash to be in > 'emacs' mode when he su's to root. I work with 'vi' mode, however. > Is there some way for the .bashrc to recognize whether he su'd to root > or I did and set the editi

Re: automatic root shell initialization

2003-06-24 Thread Mark Ferlatte
Derrick 'dman' Hudson said on Tue, Jun 24, 2003 at 01:36:18PM -0400: > On the ("new") debian server at work, my boss wants bash to be in > 'emacs' mode when he su's to root. I work with 'vi' mode, however. > Is there some way for the .bashrc to recognize whether he su'd to root > or I did and set

Re: automatic root shell initialization

2003-06-24 Thread nori heikkinen
on Tue, 24 Jun 2003 01:36:18PM -0400, Derrick 'dman' Hudson insinuated: > On the ("new") debian server at work, my boss wants bash to be in > 'emacs' mode when he su's to root. I work with 'vi' mode, however. > Is there some way for the .bashrc to recognize whether he su'd to > root or I did and s

automatic root shell initialization

2003-06-24 Thread Derrick 'dman' Hudson
On the ("new") debian server at work, my boss wants bash to be in 'emacs' mode when he su's to root. I work with 'vi' mode, however. Is there some way for the .bashrc to recognize whether he su'd to root or I did and set the editing mode appropriately? -D -- A Microsoft Certified System Enginee