How can user shut down PC based on Solaris?

Hi.

For example on Windows systems user can shut down his PC, even if he has no administrator permissions.

On Solaris commands like: reboot and shutdown can be made only with high permissions.

Is there a way for a simple user to shut down his PC without involving administrator?

Thank you.

[320 byte] By [TheNetWalker] at [2007-11-26 10:53:55]
# 1

Hello.

On the graphical user interface you have a program that allows a user to do so. The program is named "sys-suspend" (but as far as I know it is possible to forbid users to shut down the computer).

The program exists both on the PC and on the Sparc version of Solaris.

If you need a console-based shut down for all users you must set the SUID bit for the "shutdown" executable after logging in as root.

Martin

Martin_Rosenau at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

> For example on Windows systems user can shut down his

> PC, even if he has no administrator permissions.

> On Solaris commands like: reboot and shutdown can be

> made only with high permissions.

Windows was never meant to be a multi-user system, UNIX was. So if you have twenty people logged on to one UNIX box and someone decides to reboot the computer, everyone gets bounced all at once.

You could easily setup RBAC or sudo to accomplish a user reboot if necessary.

alan

alanpae at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Thank you very much for replys.

>Windows was never meant to be a multi-user system, UNIX was. So if you have twenty people logged on to one UNIX box and someone decides to reboot the computer, everyone gets bounced all at once.

I'm now in a migration process from Windows to UNIX.

When I'll complete it, all my systems will run Solaris.

I'm running Solaris on PC in single user mode, so I would like that users will be able to shut down PC without having high permission access.

I'll try "sys-suspend" and setting shutdown from console.

TheNetWalker at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4
Also, depending on the hardware, you might just try the power button. If the power stuff is read properly, that will do the equivalent of an 'init 5'.-- Darren
Darren_Dunham at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5

> I'm running Solaris on PC in single user mode, so I

> would like that users will be able to shut down PC

> without having high permission access.

sudo has a setting where anyone can run any command that you specify without requiring a password. Just add init to sudo with no password and then tell your users to run init 5 and your're all set.

alan

alanpae at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6
Thank you very much.Suspend System does the work.
TheNetWalker at 2007-7-7 3:06:49 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...