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

Re: making 'su' keep user environment?



Randall Hansen wrote:
> 
> 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?

Since intrisically 'su' is designed to do things in a different way I
would use 'sudo' instead.

  sudo -s

Bob

Attachment: pgpicRR_6qr6c.pgp
Description: PGP signature


Reply to: