Archive for the '1' Category

22
Dec
07

Substitute User

su stands for `substitute user’ and not `super user.’ (Thanks to slacker for pointing out the mistake).

su - preserves the current environment variables so that they are available for the user who has been switched to.

su -l provides a login shell.

su [USER] if USER is not specified, root is assumed by default

su -c allows to run a command as the specified user

Advertisements