cancel
Showing results for 
Search instead for 
Did you mean: 

System Shutdown using SMH

Andy Benegas
Advisor

System Shutdown using SMH

In 11.11, we were able to shutdown a system using SAM. Is there system shutdown option withing SMH? If not then what is the recommended method for having an operator shutdown a system short of giving them the root password?
4 REPLIES
Bill Hassell
Honored Contributor

Re: System Shutdown using SMH

man 1m shutdown

/etc/shutdown.allow

Read the man page carefully. There are two parts: hostname userid, and make sure root is part of this file.



Bill Hassell, sysadmin
Andy Benegas
Advisor

Re: System Shutdown using SMH

Thanks for your response Bill.

I was hoping there was a SMH replacment for system shutdown under routine tasks in SAM but it doesn't look like one exists.

We will utilize your recommendation but will need to devise a method to present the shutdown to the operator.
James R. Ferguson
Acclaimed Contributor

Re: System Shutdown using SMH

Hi Andy:

Bill has pointed you to the fundamental piece. You need to define the operator account (along with the root account!) in '/etc/shutdown.allow'.

You can create your own script which when run issues the 'shutdown' command. Then, create a special account where instead of the standard shell, your shutdown script is declared (by absolute path). When the user of this special account logs in, the shutdown script will be run and nothing else.

Regards!

...JRF...
Andy Benegas
Advisor

Re: System Shutdown using SMH

Thanks Bill and James. We will be using your suggestions to accomplish an operator shutdown.

Andy