- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: system shutdown
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
10-22-2005 01:18 PM
10-22-2005 01:18 PM
I have written a script withe the permission rwsr-x--- sys_shut.sh
but the non root user cannot shutdown the system . Is there something I can do so that they will be able to. I do not want htem using sudo
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2005 01:38 PM
10-22-2005 01:38 PM
Re: system shutdown
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=531151
sks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2005 01:50 PM
10-22-2005 01:50 PM
Re: system shutdown
Create the /etc/shutdown.allow file if it does not exist. Add the users that you want to allow to run the shutdown command to that file.
# cat /etc/shutdown.allow
root
user1
user2
# man shutdown
and go down to the FILES section of the man page for more information on the /etc/shutdown.allow file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2005 02:09 PM
10-22-2005 02:09 PM
SolutionIn addition to Patrick's guideline, you can also create an account (user) whose sole purpose is to cause your shutdown script to run.
In lieu of the normal shell program (the seventh [one-relative] field of '/etc/passwd') substitute your shutdown script. In that fashion, a successful login to the "shutdown" account will actually cause a system shutdown.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2005 02:49 PM
10-22-2005 02:49 PM
Re: system shutdown
As suggested above the best solution will be to use /etc/shutdown.allow and list all the users requiring to execute shutdown the system.
The advantage will also be that the file ca be updated anytime for modifications.
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 11:35 AM
10-24-2005 11:35 AM
Re: system shutdown
There was a file in /etc called shutdown.allow. I added the user shutuser to the file and have the operator script su to this user to reboot system . Get User shutuser not allowed to shutdown this system (simon) -- exiting shutdown.
I have even signed on as this user and get the same thing. Now I am confused...
When I added root to the file I get this error message. User root not allowed to shutdown this system (simon) -- exiting shutdown.
But if delete root from file I can reboot. no problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 11:43 AM
10-24-2005 11:43 AM
Re: system shutdown
You need to specify BOTH the system and the user in the '/etc/shutdown.allow' file. For example:
simon jim
simon root
This would allow user=jim to shutdown system=simon. It also allows 'root' to shutdown the server named 'simon'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2005 06:27 PM
10-24-2005 06:27 PM
Re: system shutdown
-rw-r--r-- 1 bin bin 0 Nov 15 2000 /etc/shutdown.allow
# chmod 644 /etc/shutdown.allow
# chown bin:bin /etc/shutdown.allow
Put entries as
# /etc/shutdown.allow
+ is used to denote all hostname or users
# /etc/shutdown.allow
machine1 jim
machine2 +
It allows jim to shutdown a machine called machine1. All users are allowed to shutdown machine2.
Refere man 1m shutdown page, /etc/shutdown.allow part under FILE section.
-Muthu
jim is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2005 01:20 AM
10-25-2005 01:20 AM
Re: system shutdown
Thanks again.