Although I personally disable the sys-suspend command, if you have
that available then it already allows ordinary users to shutdown the
machine. man sys-suspend.
In this instance you could group permissions to allow execution.
-- John
> You can install sudo to let specified user to run root-only-commands such as
> shutdown, reboot, init etc. Available at sunfreeware.com.
> Neoh Kee Lin
> > Hello,
> > I am trying to write a script that would bring down a SUN Solaris server
> > without logging into it as root. The main goal is to have computer
> operations
> > login as as servopp, and have this account execute a script that switches
> to SU
> > and performs a init 0. I need help with doing this. If anyone has any
> ideas
> > if this could be done, I would appreciate it.
> > Thanks
> > Joe
--
John T. Douglass Phone: 208 533 7992
"A train stops at a trainstation, a bus stops
at a bustation, what happens at a workstation?"