man(1) Manual page archive


     SU(8)                                                       SU(8)

     NAME
          su, setlog - substitute userid temporarily, become super-
          user

     SYNOPSIS
          /etc/su [ user ]

          /etc/setlog logname command ...

     DESCRIPTION
          Su changes the userid to that of user (root by default) with
          groupid and login shell determined from the password file.
          If the current userid is not the super-user, the password
          for the new user is demanded.  The userid stays in force
          until the new shell exits.

          The current directory and environment are unchanged unless
          the new userid is super-user, in which case the environment
          variables PS1 and PATH, if present, are set to standard val-
          ues (white space and /bin:/usr/bin:/etc).

          Setlog executes the specified command with login name
          logname. The environment is otherwise unchanged; in particu-
          lar, the userid is not set.  Only the super-user may use
          this command.

     SEE ALSO
          sh(1), getuid(2), passwd(5)