[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automatic root shell initialization



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 .bashrc to recognize whether he su'd to
> > root or I did and set the editing mode appropriately?

Can PAM possibly help ?
For example, by setting some environment variable ?

-- 
ZHAO Wei
zhaoway@public1.ptt.js.cn zw@netspeed-tech.com
http://www.advogato.org/person/zhaoway/
Linux & Free Software Consultant, Nanjing, China



Reply to: