user1@deby:~$ su - Password: deby:~#When done you can issue exit that brings you back to original environment.
Saturday, April 24, 2010
When using su, it is a good idea to use the option - at all times. This option will give you a login shell instead of a subshell. This ensures that you work in the complete environment of the user you are switching to.