- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Restricted sam
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 06:05 PM
06-12-2004 06:05 PM
Restricted sam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2004 07:21 PM
06-12-2004 07:21 PM
Re: Restricted sam
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2004 05:32 AM
06-13-2004 05:32 AM
Re: Restricted sam
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2004 06:29 PM
06-13-2004 06:29 PM
Re: Restricted sam
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]>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2004 11:01 PM
06-13-2004 11:01 PM
Re: Restricted sam
/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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 07:01 PM
06-15-2004 07:01 PM
Re: Restricted sam
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-15-2004 08:13 PM
06-15-2004 08:13 PM
Re: Restricted sam
Pls try setting the machine's alias and user name, i.e:
#cat /etc/shutdown.allow
myhost oper
Rgds.