Skip to main content.
Index | Support | Documentation | FAQ

Creating a user that shuts down SCO UNIX

There are two ways this can be done:

Give the user 'Shutdown Authorisation

The "shutdown" authorization allows an ordinary user with this authorization to shut down the machine using the following command:

        /tcb/bin/asroot shutdown -g0 -y

This may be preferable to the special account created below.

Creating an Account

  1. Log in as root in System Maintenance mode.

  2. Using sysadmsh Accounts->User->Create, create a user with the name "shutdown":

    Select 'NO' to Modify defaults?
    Assign a password to shutdown

  3. Create a file /usr/shutdown/<filename> with the following line:
                   	/tcb/bin/asroot shutdown  -g0 -y                        
    
    The shutdown time option (0 in the example above) may be whatever you choose. Change the permissions and owner as follows:
                    chmod 700 <filename>
                    chown shutdown <filename> 
    
  4. Using sysadmsh Accounts->User->Examine, select "Identity".
    Change the login shell to "/usr/shutdown/<filename>".
    Select <Keep> Home directory.
    Save the changes.

    Then select "Privileges".
    Choose "Subsystem".
    Then select "Specify".
    Add the "shutdown" authorization.

  5. If you want shutdown to be automatic, add the following line to the file /etc/default/su.
               ASROOTPW=NO
    
    NOTE: The file /etc/default/su may need to be created. If this file is not amended, the shutdown user will be prompted for their password a second time, when they log in.

  6. A user may now shut down the system by logging in as "shutdown".