Table of Contents
Previous Utility | List of External Utilities | Next Utility

Su


        su:  Run a command as another user

Usage:  su [-CnNtTwh-] [-p <password>] [ userid [ command ]]

   su is a Windows NT equivalent of the UNIX "super user"
   command.  su is used to run a command (by default, the
   C shell) as another user.  su will not run under Windows 95.

   The userid may be specified as either a simple name or as a
   domain\name pair.  If no userid is specified, su will use
   the Administrator account.  If no password is given, su
   will try logging in without a password.  If that fails,
   it will prompt for a password; the password will not be
   echoed to the screen.

   To use this command, you must have the following rights,
   which can be granted via the User Manager:

      Act as part of the operating system
      Increase quotas
      Replace process token

   (Pull down Policies, select User Rights and click to show
   Advanced User Rights.)

   The command can refer to any executable file or to a C shell
   command or alias.  If a complete path is not specified, su
   will look through the search path.  If an extension is not
   specified, su will try all the usual possibilities:  .csh,
   .exe, .com, .cmd and .bat.  If a corresponding executable
   file cannot be found, su will assume the command is an
   internal C shell command or alias.  If no command is
   specified, su will run the C shell.

Options:

   -C             Start up a copy of C shell to run each command.
   -n             Non-interactive.  The password, if not null,
                  must be passed on the command line.  su will
                  not prompt for it.
   -N             New console.  Open a new window to run the
                  command.  Meaningful only when running a
                  console application.
   -t             Trace mode.  The command line is written to
                  stderr just prior to invocation.
   -T             Change the title bar when starting the child.
   -p <password>  Password to be used with the specified userid.
   -w             Wait for the child to exit before returning,
                  even if it's running in a new window.

   -h             Help.  (This screen.)
   --             End of options.



Previous Utility | List of External Utilities | Next Utility
Table of Contents



Copyright © 1988-2003 by Hamilton Laboratories. All rights reserved.