LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Environment Variables if you su (https://www.linuxquestions.org/questions/linux-newbie-8/environment-variables-if-you-su-28095/)

concoran 08-16-2002 07:02 PM

Environment Variables if you su
 
If you login using either ssh or telnet and su to a different user,
the environment variables still remain the same as the previous
user.
Is there a way to loose current vars and pull the right env vars if
you su?

dorward 08-16-2002 07:18 PM

Start a new login shell

Code:

su -


All times are GMT -5. The time now is 02:06 AM.