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
- Log in as root in System Maintenance mode.
- Using sysadmsh Accounts->User->Create, create a user with the
name "shutdown":
Select 'NO' to Modify defaults?
Assign a password to shutdown - Create a file
/usr/shutdown/<filename>with the following line: The shutdown time option (0 in the example above) may be whatever you choose. Change the permissions and owner as follows:/tcb/bin/asroot shutdown -g0 -ychmod 700 <filename> chown shutdown <filename> - 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. - If you want shutdown to be automatic, add the following line
to the file /etc/default/su.
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.ASROOTPW=NO - A user may now shut down the system by logging in as "shutdown".