- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Script to kill an user proccess
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
04-08-2005 12:05 AM
04-08-2005 12:05 AM
Script to kill an user proccess
I need help to make a shell script to kill automatically all process of a given user.
So I'll give the user $LOGNAME and the scrip should kill all proccess of this user.
Thanks for your help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 12:09 AM
04-08-2005 12:09 AM
Re: Script to kill an user proccess
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 12:13 AM
04-08-2005 12:13 AM
Re: Script to kill an user proccess
kill -
Regards,
Rik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 04:00 AM
04-08-2005 04:00 AM
Re: Script to kill an user proccess
How can I set the UID to root
so that no root users be able to execute the script.
bye
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 04:32 AM
04-08-2005 04:32 AM
Re: Script to kill an user proccess
http://www.sudo.ws/
And here is a version compiled for HPUX:
http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.8p7/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2005 06:24 AM
04-08-2005 06:24 AM
Re: Script to kill an user proccess
Simply use this command it will kill the users session:
1. If sudo permission has been set to your user , or use as a root user.
#PROC=`ps -fu username | grep -v PID | awk '{print $2}'` ; kill -9 `echo $PROC`
-----------------------------------------
username= The username whose proceses you want to kill.
Cheers ,
Veri.