Any unix gurus here??

Actually AIX.

I’m just trying a very simple thing and its driving me nuts. While try to switch a user to root using “sudo su -” or even “su -”, all I want is to retain the environment variables set for original user. How do i achieve it?

Somewhere I read sudo - E but its not working on AIX.

Any clue?
Let me know if you want examples

Re: Any unix gurus here??

I am not Linux guru. AIX is an IBM standard. I know little bit commands on Red Hat. :hmmm:

Why you want to retain env variable of orig user? Root is different user and theoretically it should have its own environment variable values.