su — Become Superuser or Another User

Synopsis

su [-][username [arg...]]

Description

Use the su (switch user) command to become another user without logging off. The default user name is root (superuser).

To use su, you must supply the appropriate password unless you are 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 is the shell specified in the shell field of username's password file entry (see passwd(4)). If no shell is specified, /usr/bin/sh is used (see sh(1)). To return to normal user ID privileges, type an end-of-file character (Control-D) to exit the new shell.

Any additional ...

Get Solaris™ 8 System Administrator's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.