|
|
|
|
google site
|
|||||||
| Forums | Register | Blog | Man Pages | Forum Rules | Links | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||
|
shutting down by non-root users
I was asked to create a special user that is capable of shutting down our Sun servers in case of emergency (such as power outage). As far as I know, only a root user can run the "sutdown" script. Is there a way to enable a regular user to run the shutdown command? I don't want to give out the root password, so they can't su as root. Any advice will be appreciated!
|
| Sponsored Links | ||
|
|
|
|||
|
You will want to use the tool "sudo" for that. You can give accounts rights to run specific commands with it. Tons of info online about using sudo, just try google and I'm sure you'll be able to find all you need.
|
|
|||
|
Thanks everyone for help! I set up a shutdown user and gave him sudo rights to the shutdown script. I also created $HOME/.profile file that calls shutdown upon user login, and it works fine. I decided no to create a root user for this purpose.
I discovered a strange anomaly though. First I was trying to set up /etc/passwd to call a script with the shutdown command instead of a shell for the shutdown user, but for some weird reason it doesn't work on Solaris 9 box. The runlevel changes to whatever I tell it to (such as 6), but the system remains up and running. Really weird. It worked on a Solaris 8 box, though. So instead, I opted for the $HOME/.profile script, it works fine on a Solaris 9 box. |
![]() |
| Bookmarks |
| Tags |
| solaris |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prevent users logging in as root | Sepia | Solaris | 3 | 06-05-2008 02:45 PM |
| EUID set for all non-root users | chrisanto_2000 | Solaris | 1 | 08-21-2007 02:28 PM |
| Non-Root Users Unable to Print | cfshd | SCO | 1 | 07-09-2007 10:58 PM |
| Root ENV is different from users', how to change? | alanlh | Solaris | 4 | 06-06-2007 11:47 PM |
| root and all but 2 users locked out | kymberm | Linux | 7 | 02-26-2005 06:52 PM |