- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Ctlr ^C denied to a 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
07-01-2004 03:28 AM
07-01-2004 03:28 AM
I want that a user could not do ctrl ^C with his keyboard to stop a process, what I could do in the .profile file of the user or in my script ?
thanks a lot
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:31 AM
07-01-2004 03:31 AM
Re: Ctlr ^C denied to a user
trap 'echo "^G^G^G" ;' 1 2 15
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:40 AM
07-01-2004 03:40 AM
Re: Ctlr ^C denied to a user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:44 AM
07-01-2004 03:44 AM
Re: Ctlr ^C denied to a user
stty intr ^=
Regards,
Fred
"Reality is just a point of view." (P. K. D.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:46 AM
07-01-2004 03:46 AM
Re: Ctlr ^C denied to a user
Has he modified his .profile?
is he accessing by X ? which means he is not reading .profile...
Sorry for the inconvenience but these last 2 weeks I just cant get my eyes to accommodate correctly -I just changed glasses but seem to still have trouble with my screen and keyboard... I apologize!
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:48 AM
07-01-2004 03:48 AM
Re: Ctlr ^C denied to a user
As said earlier, a knowledgable user can always overide it with command trp 1 2 3
You can also start the program with nohup. man nohup. Program started started with nohup will not respond to HUP signal
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 03:52 AM
07-01-2004 03:52 AM
Re: Ctlr ^C denied to a user
as Fred directed the right way is intr in man stty.
For example for my users in $HOME/.profile there is a line as the following:
stty erase "^H" kill "^U" intr "^C" eof "^D"
as from /usr/newconfig/.profile.
If I delete intr "^C" to see
stty erase "^H" kill "^U" eof "^D"
that user cannot use CTRL+C to interrupt processes.
HTH.
Best regards,
Fabio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 04:12 AM
07-01-2004 04:12 AM
Re: Ctlr ^C denied to a user
What going to stop him type stty intr....
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2004 04:17 AM
07-01-2004 04:17 AM
Re: Ctlr ^C denied to a user
Ciao Fabrizio