- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: kicking out 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
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
тАО06-06-2009 08:47 PM
тАО06-06-2009 08:47 PM
kicking out a user
Thanks
root@sp10 # ps -ef | grep saps
saps 26159 26140 0 Jun 3 pts/ta 0:00 -sh
root 694 29500 0 23:31:04 pts/0 0:00 grep saps
saps 4711 26159 0 Jun 3 pts/ta 0:00 more runserver.sh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 09:11 PM
тАО06-06-2009 09:11 PM
Re: kicking out a user
Kill those user process by Kill -15
#kill -15 4711
#kill -15 26159
Then delete the user by userdel command
Rgds
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 09:36 PM
тАО06-06-2009 09:36 PM
Re: kicking out a user
You can use who -a | grep user name and kill the id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 10:09 PM
тАО06-06-2009 10:09 PM
Re: kicking out a user
please determine the exact process id first, by using the command ps -eaf | grep username then only issue the kill -15 to terminate the process.
once u killed the process u can delete the user
by using userdel command
thanks and regards
Sajjad Sahir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 10:28 PM
тАО06-06-2009 10:28 PM
Re: kicking out a user
Always remember KILL/RM/CHOWN are dangerous commands in UNIX. So be careful before you react.
Determine the severity of the user process
Kill those user process by Kill -15 or #kill -9
#kill -15 4711
#kill -15 26159
To restrict future login of this particular user delete the user by userdel command
Rgds
Akif
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-06-2009 10:55 PM
тАО06-06-2009 10:55 PM
Re: kicking out a user
To find the processes:
UNIX95=EXTENDED_PS ps -H -fu saps
After checking above, to just kill them all:
kill $(UNIX95=EXTENDED_PS ps -fu saps -opid=)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2009 08:34 PM
тАО06-07-2009 08:34 PM
Re: kicking out a user
ps -fu saps | awk '{print $1,$2}' (See the list of running process by saps)
kill -9 `ps -ef |grep saps |awk '{print $2}'` (and then kill the all process for saps user)
now you can delete the saps user and saps user home directory also
# userdel -r saps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-07-2009 09:11 PM
тАО06-07-2009 09:11 PM
Re: kicking out a user
Ffirst kill the process which is own by saps
as per your output there are 2 process I can see :
saps 26159 26140 0 Jun 3 pts/ta 0:00 -sh
saps 4711 26159 0 Jun 3 pts/ta 0:00 more runserver.sh
use the below command
#kill -9 26159 4711
then cross check with
#ps -aef | grep saps
once you check then used
#userdel saps or
#userdel -r saps
-r removes user saps's home directory.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-15-2009 06:19 AM
тАО06-15-2009 06:19 AM
Re: kicking out a user
Use who -THu to detemine the terminal and then
kill it by using fuser -k /dev/"terminal".
Regards,
Durvesh