- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Shutdown to User
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
01-26-2005 04:47 AM
01-26-2005 04:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 04:50 AM
01-26-2005 04:50 AM
Re: Shutdown to User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 04:50 AM
01-26-2005 04:50 AM
Re: Shutdown to User
You can use /etc/shutdown.allow file. man 1m shutdown for details.
You can slao install sudo and configure it for your requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 04:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:02 AM
01-26-2005 05:02 AM
Re: Shutdown to User
# more /etc/shutdown.allow
user
#
Any tips ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:05 AM
01-26-2005 05:05 AM
Re: Shutdown to User
After adding entries to the /etc/shutdown.allow file, did you try /usr/sbin/shutdown -r -y 0 command by logging in as that user ?
Remember you cannot issue shutdown from a mounted filesystem
$ cd /; /usr/sbin/shutdown -r -y 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:18 AM
01-26-2005 05:18 AM
Re: Shutdown to User
$ /usr/sbin/shutdown -r -y 0
User add021 not allowed to shutdown this system (bzhp103) -- exiting shutdown.
$ pwd
/
$ more /etc/shutdown.allow
add021
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:26 AM
01-26-2005 05:26 AM
Re: Shutdown to User
You need to put the server name in the shutdown.allow file like this:
ie
myserver add021
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:33 AM
01-26-2005 05:33 AM
Re: Shutdown to User
also make sure that the world has execute permission for /sbin/shutdown. The permissions could be 4555 and could read as -r-sr-xr-x
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:45 AM
01-26-2005 05:45 AM
Re: Shutdown to User
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 05:49 AM
01-26-2005 05:49 AM
Re: Shutdown to User
"The file contains lines that consist of a system host name and the login name."
So your shutdown.allow file must have the system name too:
mycpu add021
Bill Hassell, sysadmin