Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to reboot Solaris 10 without being a root user?

285 views
Skip to first unread message

newbie09

unread,
Jun 15, 2011, 2:10:33 AM6/15/11
to
Hi,

I have a Solaris 10 system. I would like to be able to reboot my
system. Currently, the only to do this is to first log in as root,
then, run the "reboot" command. The problem is that everyone who uses
it will know the superuser password.

How do you allow a regular user to reboot a Solaris 10 system without
being logged in as root?

Chris Ridd

unread,
Jun 15, 2011, 2:19:12 AM6/15/11
to
On 2011-06-15 07:10:33 +0100, newbie09 said:

> Hi,
>
> I have a Solaris 10 system. I would like to be able to reboot my
> system. Currently, the only to do this is to first log in as root,
> then, run the "reboot" command.

Read the man page for reboot. It isn't normally the right way to reboot
a system.

> The problem is that everyone who uses
> it will know the superuser password.
>
> How do you allow a regular user to reboot a Solaris 10 system without
> being logged in as root?

You should look at RBAC - possibly there's already some role defined
which allows for rebooting - or sudo.
--
Chris

newbie09

unread,
Jun 15, 2011, 4:03:11 AM6/15/11
to


How do you configure "sudo" to make this work?

Ian Collins

unread,
Jun 15, 2011, 4:15:28 AM6/15/11
to
On 06/15/11 06:10 PM, newbie09 wrote:
> Hi,
>
> I have a Solaris 10 system. I would like to be able to reboot my
> system. Currently, the only to do this is to first log in as root,
> then, run the "reboot" command. The problem is that everyone who uses
> it will know the superuser password.

How many people do you want to be able to reboot your system? The only
thing that's rebooted mine recently is earthquakes!

> How do you allow a regular user to reboot a Solaris 10 system without
> being logged in as root?

rbac.

--
Ian Collins

newbie09

unread,
Jun 15, 2011, 4:24:29 AM6/15/11
to
OK, I installed sudo. I downloaded the binary file, logged in as
root, and ran this command:

pkgadd -d sudo-1.8.1p2-sol10-x86-local


Now, inside /usr/local/bin directory, I see "sudo"

What do I do next to do a test "reboot" when logged in as a regular
user?

PM

unread,
Jun 15, 2011, 8:57:41 AM6/15/11
to

You do:

$ man sudo
$ man visudo
$ /usr/local/sbin/visudo

Oscar del Rio

unread,
Jun 15, 2011, 9:46:17 AM6/15/11
to

man sudoers

One of my most hated man pages :)

Colin B.

unread,
Jun 16, 2011, 12:21:12 PM6/16/11
to

In addition to the other advice people have offered (sudo and rbac), the
obvious answer is that you don't. You probably shouldn't be using the reboot
command (read the notes at the end of the man page), and you probably
shouldn't be rebooting your system.

Unix computers should be shut down for power outages, rebooted for patches,
and otherwise left alone.

Colin

0 new messages