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

Re: making 'su' keep user environment?



On Fri, 2003-03-21 at 11:56, Randall Hansen wrote:
> Folks ~
> 
> When I 'su' to root on my machine, my bash user environment
> (aliases, path, etc.) gets replaced by root's login environment.
> How can I change this so my user environment remains only for 'su'
> while leaving root's login environment alone?

I think "su -m" might do what you want.

See the su(1) man page.

-- 
Michael Wardle <michael.wardle@adacel.com>
Adacel Technologies



Reply to: