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



Archives

February 2018
M T W T F S S
« Dec    
 1234
567891011
12131415161718
19202122232425
262728  

Top Clicks

  • None

Pages

Blog Stats

  • 86,023 hits
Advertisements