su—become superuser or another user

su [-flmp] [-c command]  [-s shell] [--login] [--fast]
   [--preserve-environment] [--command=command] [--shell=shell ]
   [ – ] [--help] [--version] [ username [ arg … ] ]

su allows one to become another user without logging off. The default username is root (superuser). To use su, the appropriate password must be supplied (unless the invoker is already root). If the password is correct, su creates a new shell process that has the real and effective user ID, group IDs, and supplementary group list set to those of the specified username. The new shell will be the shell specified in the shell field of username's password file entry. If no shell is specified, sh (Bourne shell) is used. To return to normal user ID privileges, type Ctrl-D to exit the new shell. The – option specifies a complete login.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.139.86.18