- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Killing users
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-05-2001 05:04 AM
07-05-2001 05:04 AM
Killing users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 06:26 AM
07-05-2001 06:26 AM
Re: Killing users
Use scmd command instead....Its very simple to configure....
You can see the man page or docs.hp.com for more details...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 06:44 AM
07-05-2001 06:44 AM
Re: Killing users
However you kill processes, you should only use
kill -9 as a weapon of absolute last resort. Kill -9 does not cleanup and leaves shared memory segments and other IPC structures hanging around among other bad things. Start with kill -15, then kill -1, then kill -2. If those fail do a kill -11. Kill -11 is almost as sure a kill as kill -9 but does cleanup.
Regards, Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 07:01 AM
07-05-2001 07:01 AM
Re: Killing users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 07:19 AM
07-05-2001 07:19 AM
Re: Killing users
Need futher help?
Thanks
Vibert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 10:47 AM
07-05-2001 10:47 AM
Re: Killing users
Has this ever worked? Just to confirm what you're doing:
1. a non-root user is logging in
2. they try to kill a session they don't own
3. an "permission denied" error is returned.
If I understand correctly, unless you are root, you can only kill processes that you own.
Is the error you are receiving like this?
kill:
If it is, then it is the kill command that saying you don't have permission to kill someone else's process.
Hope this helps,
Jared
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 10:53 AM
07-05-2001 10:53 AM
Re: Killing users
You can use sudo to allow a process (including kill) to run as root.
Use this link: http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.2b1/
Normally, it is a very bad thing to allow non-root users to kill another user's process. The bad news, it that they could kill init, cron,
inetd, and other vital processes.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 11:36 AM
07-05-2001 11:36 AM
Re: Killing users
The thing is that it was working before and is working on another of my servers. Besides the Operators are doing this through restricted SAM.
Clay:
I really don't want to use a third party tool for this
Thanks
Vibert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 11:45 AM
07-05-2001 11:45 AM
Re: Killing users
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 12:20 PM
07-05-2001 12:20 PM
Re: Killing users
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 01:30 PM
07-05-2001 01:30 PM
Re: Killing users
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 11:30 PM
07-05-2001 11:30 PM
Re: Killing users
If it worked before and does not now then changes have been made.
As said before have your operators deleted/changed SAM files?
Has the passwd file been changed?
Do a diff against your backup passwd -
You do have one I hope.
Do a full backup and then go to a last known good ignite backup and recover to that, does it now work? If so what has changed.
HTH
Paula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2001 11:54 PM
07-05-2001 11:54 PM
Re: Killing users
Can you please post the output of
samlog_viewer -u
Regards,
Vincent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 12:20 AM
07-06-2001 12:20 AM
Re: Killing users
Perhaps this script can help :
----------------------------------------------
script accessible by users
( /usr/local/bin/kill_em.sh ) :
#!/bin/sh
# this should kill off those goners who shut of their PC's
# in an not-so-ok fashion......
#
# rm /usr/tmp/kill_em
tput clear
echo "Please enter User-Id ! "
read userid
export userid
echo "exec >> /var/tmp/kill_proc.log 2>&1" >> /var/tmp/kill_em1.sh
ps -ef | grep ${userid} | grep -v daemon | grep -v root
--------------------------------------------
and add this line to the crontab of root
00,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/local/bin/kill_proc1.sh
---------------------------------------------
this is the script started by crontab of root
( /usr/local/bin/kill_proc1.sh )
#!/bin/sh
# this should kill off those goners who shut of their PC's
# in an not-so-ok fashion......
#
touch /var/tmp/kill_em1.sh
chmod 777 /var/tmp/kill_em1.sh
/var/tmp/kill_em1.sh
rm /var/tmp/kill_em1.sh
------------------------------------------
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 12:38 AM
07-06-2001 12:38 AM
Re: Killing users
Sorry, first script is not complete and wrong name
should be
--------------------------------------------
/usr/local/bin/kill_proc.sh
#!/bin/sh
# this should kill off those goners who shut of their PC's
# in an not-so-ok fashion......
#
# rm /usr/tmp/kill_em
tput clear
echo "Please enter User-Id ! "
read userid
export userid
echo "exec >> /var/tmp/kill_proc.log 2>&1" >> /var/tmp/kill_em1.sh
ps -ef | grep ${userid} | grep -v daemon | grep -v root |
sort| awk '{print "kill -9 " $2}' >> /var/tmp/kill_em1.sh
chmod 777 /var/tmp/kill_em1.sh
---------------------------------------------
Rgds
Alexander M. Ermes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2001 04:09 AM
07-06-2001 04:09 AM