System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

How to enable the user shutdown the hpux 11.00.

SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to enable the user shutdown the hpux 11.00.

Hi

Actually some users are having hpux workstations running hpux 11.00.

We have created one user in that and given to him. we have the root password.

But user wants to shutdown the server from his login.

Is it possible with out configuring sudo.
5 REPLIES
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to enable the user shutdown the hpux 11.00.

Hi:

See the manpages for 'shutdown(1M)'. You need to establish an entry for _both_ 'root' and the user in question in the '/etc/shutdown.allow' file. The requirements are discusssed in the "FILES" section of this manpage:

http://docs.hp.com/en/B2355-60130/shutdown.1M.html

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: How to enable the user shutdown the hpux 11.00.

Hi Senthil Kumar,

There are basically two ways that you can
allow users to shutdown a server. You can
include their user id in the shutdown.allow
file, or set up 'sudo' to do it. You can
also set up 'sudo' to other things as well.

Hope this helps,

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Suraj K Sankari
Honored Contributor

Re: How to enable the user shutdown the hpux 11.00.

Hi,
>>Is it possible with out configuring sudo.
Yes it is possible,
Using shutdown.allow file
This file is used to allow some system users to execute the shutdown command. Each line contains a system name followed by user names. Any user listed in this file has the privilege to shut down the system. An asterisk in the system name allows a user of given name from any system to execute the shutdown command. Some sample entries in this file are:

myhp root
myhp operator
* boota

Suraj
Kranti Mahmud
Honored Contributor

Re: How to enable the user shutdown the hpux 11.00.

Hi Senthil,

You can use 'sudo' setup for this purpose.
Secondly, can add some entry at
/etc/shutdown.allow file. Consider the example as:

# user1 can shut down systemA and systemB
systemA user1
systemB user1
# root can shut down any system
+ root
# Any user can shut down systemC
systemC +

Check the shutdown manpage at:
http://docs.hp.com/en/B2355-60130/shutdown.1M.html

Rgds-kranti
Dont look BACK as U will miss something INFRONT!
Sajjad Sahir
Honored Contributor

Re: How to enable the user shutdown the hpux 11.00.


Dear Senthil

without sudo u can do it.
please make an entry of system hostname and the login name of a user authorized to reboot or halt the system in the /etc/shutdown.allow file The super-user's login name must be included in this file in order to execute shutdown.

thanks and regards

Sajjad Sahir