RE: Environment and Sudo

2006-05-28 Thread David Baron
Commands invoked using sudo do not receive/honor environment items or aliases. Example would be the alias vi=vim. Invoking normally will run vim, invoking using sudo vi will get the other vi. Is there something else I need in /etc/profile or some .bashrc? So for security reasons, the env is

Re: Environment and Sudo

2006-05-26 Thread viraj
On 5/25/06, David Baron [EMAIL PROTECTED] wrote: Commands invoked using sudo do not receive/honor environment items or aliases.Example would be the alias vi=vim. Invoking normally will run vim, invokingusing sudo vi will get the other vi. Is there something else I need in /etc/profile or some

Environment and Sudo

2006-05-25 Thread David Baron
Commands invoked using sudo do not receive/honor environment items or aliases. Example would be the alias vi=vim. Invoking normally will run vim, invoking using sudo vi will get the other vi. Is there something else I need in /etc/profile or some .bashrc? -- To UNSUBSCRIBE, email to [EMAIL