1826502 Members
1999 Online
109692 Solutions
New Discussion

Restricted sam

 
Mehmood Ansari
Frequent Advisor

Restricted sam

Problem still remain through restricted sam. The whole idea of creating restricted sam is to allowe User oper under home directory to reboot the system. Any other solutions, some one can help me please.
6 REPLIES 6
Victor Fridyev
Honored Contributor

Re: Restricted sam

Hi,

If you need to grant shutdown to some user, create file /etc/shutdown.allow and add there all users, including root as follows:
+ root
+ admin


etc
Entities are not to be multiplied beyond necessity - RTFM
Sridhar Bhaskarla
Honored Contributor

Re: Restricted sam

Hi Mehmood,

Just to reboot the system, you can use /etc/shutdown.allow file. Add the user in there.

Other than that, you can use 'sudo'. It's avaialble at HP's porting website.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Mehmood Ansari
Frequent Advisor

Re: Restricted sam

Hi

It is not workking

[cmsprod,cmsoper,ORCL,/home/cmsoper]>/etc/shutdown -r now

User cmsoper not allowed to shutdown this system (cmsprod) -- exiting shutdown.

[cmsprod,cmsoper,ORCL,/home/cmsoper]>


Cheryl Griffin
Honored Contributor

Re: Restricted sam

Check that the shutdown.allow is in the correct format. The format is viewable from http://www.docs.hp.com/hpux/onlinedocs/B2355-90692/00/01/143-con.html#files See under FILES
/etc/shutdown.allow

The format is to have system name followed by hostname. In addition a superuser's name must be included in the file. See the man page for details.
"Downtime is a Crime."
Mehmood Ansari
Frequent Advisor

Re: Restricted sam

Hi

shutdown.allow is set correctly, it is not working.

[cmsprod,cmsoper,ORCL,/home/cmsoper]>/usr/sbin/shutdown -r
User cmsoper not allowed to shutdown this system (cmsprod) -- exiting shutdown.

lrwxr-xr-t 1 root sys 18 Apr 16 2003 shutdown -> /usr/sbin/shutdown
-rwxrwxrwx 1 root sys 14 Jun 14 10:16 shutdown.allow
-rw-r--r-- 1 bin bin 942 May 18 22:48 shutdownlog
root@cmsprod /etc #pg shutdown.allow

cmsoper
root
root@cmsprod /etc #

Any other solutions.

Regards

Jose Mosquera
Honored Contributor

Re: Restricted sam

Hi,

Pls try setting the machine's alias and user name, i.e:

#cat /etc/shutdown.allow
myhost oper

Rgds.