Saturday, April 24, 2010

Switching Identity with su

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.
user1@deby:~$ su -
When done you can issue exit that brings you back to original environment.

No comments :

Post a Comment