- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to lock shutdown and reboot commands??
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
Discussions
Discussions
Discussions
Forums
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
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-25-2003 06:53 AM
тАО10-25-2003 06:53 AM
How to lock shutdown and reboot commands??
Please let me know, if it's possible.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-25-2003 07:36 AM
тАО10-25-2003 07:36 AM
Re: How to lock shutdown and reboot commands??
I would also stress educating the sys admins that shutdown/reboot is unacceptable during certain times. Also make everyone work from their own account. Only work from the root account when it is absolutely necessary. Setting up and usingi sudo can also help here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 12:34 AM
тАО10-27-2003 12:34 AM
Re: How to lock shutdown and reboot commands??
shutdown program triggered inside the .profile. Also the /etc/shutdown.allow file was modified to allow only "shutdown" user to turn off the system.
You could also create your own script that
sudo (or su) to shutdown the system.
Regards,
Christian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 12:50 AM
тАО10-27-2003 12:50 AM
Re: How to lock shutdown and reboot commands??
How did you add in .profile, that makes easy solution. Can you please give that format.
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 01:40 AM
тАО10-27-2003 01:40 AM
Re: How to lock shutdown and reboot commands??
We made another user with user id of zero.
and just entered.
shutdown -y -r
as the last line of their user profile.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 01:41 AM
тАО10-27-2003 01:41 AM
Re: How to lock shutdown and reboot commands??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 02:49 AM
тАО10-27-2003 02:49 AM
Re: How to lock shutdown and reboot commands??
We wrapped the shutdown command in a script and prompted for a password. The issue wasn't security as much as making sure that we weren't logged into the wrong machine. The password was the hostname in all cases.
A hacker wouldn't have trouble getting around it, but if it's 2:00 AM, you're 1/2 asleep and you think you are logged into machine A but you're really logged into machine B when you enter A for the password, you are politely turned away before you kill the wrong machine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 10:53 AM
тАО10-27-2003 10:53 AM
Re: How to lock shutdown and reboot commands??
The real solution to this problem is admin training and discipline. I don't care if it is 2AM there still needs to be checks to see if it is safe to shutdown.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 10:59 AM
тАО10-27-2003 10:59 AM
Re: How to lock shutdown and reboot commands??
You can't fix stupid with a wrapper nor a patch.
If I've ever seen a need for training this is it.
If the problem is with mgmnt's hiring practices, well that *needs* to be addressed as well.
My 2 cents,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 01:12 PM
тАО10-27-2003 01:12 PM
Re: How to lock shutdown and reboot commands??
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-27-2003 11:23 PM
тАО10-27-2003 11:23 PM
Re: How to lock shutdown and reboot commands??
You can do something like this.
See the attached file and modify it.
//Tommy