- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Restricting from SHUTDOWN script Interruption
Operating System - HP-UX
1821588
Members
3520
Online
109633
Solutions
Forums
Categories
Company
Local Language
юдл
back
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
юдл
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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-20-2004 01:09 AM
тАО06-20-2004 01:09 AM
Hi all ,
I have made on script in .profile of shut user.
So that shut user can shutdown the system directly without logging on root.
#cd /shut
#vi .profile
cd /
/sbin/shutdown -y -h 0
exit
But the problem is that , while executing if i press , it gets interrupted and i gets # .
How to make it secure. so that it should not be interrupted and not to get superuser #.
Thanks in Advance.
Rveri.
------
I have made on script in .profile of shut user.
So that shut user can shutdown the system directly without logging on root.
#cd /shut
#vi .profile
cd /
/sbin/shutdown -y -h 0
exit
But the problem is that , while executing if i press
How to make it secure. so that it should not be interrupted and not to get superuser #.
Thanks in Advance.
Rveri.
------
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2004 01:28 AM
тАО06-20-2004 01:28 AM
Solution
Hi Rveri ,
Do the following ,
Just remove the interrupt routine for to something else. That will solve the problem.
Add the following to your begining of the script
stty intr ""
..
..
cd /
/sbin/shutdown -y -h 0
exit
Hope this will help you.
Cheers ,
Raj. D.
-------
Do the following ,
Just remove the interrupt routine for
Add the following to your begining of the script
stty intr ""
..
..
cd /
/sbin/shutdown -y -h 0
exit
Hope this will help you.
Cheers ,
Raj. D.
-------
" If u think u can , If u think u cannot , - You are always Right . "
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2004 01:33 AM
тАО06-20-2004 01:33 AM
Re: Restricting from SHUTDOWN script Interruption
Thanks , who ever replied .
Well that one is working ..10 points to Raj.
Now its cant stop with. Thanks.
Well that one is working ..10 points to Raj.
Now its cant stop with
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP