LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2009, 09:57 AM   #1
mrowcp
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Rep: Reputation: 0
Question samba - how to kill users/pid


Hello,
I have a problem with killing samba user's/pid's
When I type:

Quote:
# smbstatus -u it

Samba version 3.0.28
PID Username Group Machine
-------------------------------------------------------------------

Service pid machine Connected at
-------------------------------------------------------
folder.share 37304 192.168.50.72 Fri Sep 18 16:58:18 2009

Locked files:
Pid Uid DenyMode Access R/W Oplock SharePath Name Time
-----------------------------------------------------------------------

# kill 37304
than I type: smbstatus again and connection is still there, but with another pid ?!?
How can I kill/kick pid/user from samba?
 
Old 09-19-2009, 08:48 PM   #2
segmentation_fault
Member
 
Registered: Sep 2008
Location: Ioannina, Greece
Distribution: Gentoo
Posts: 332

Rep: Reputation: 55
On a terminal type
"ps -A | grep smb"
This should return the pids of samba processes. If, as on my box, are more than one kill the process with the lowest pid.
Perhaps the parent process sees the child die and respawns it.
 
Old 09-21-2009, 03:36 AM   #3
mrowcp
LQ Newbie
 
Registered: Sep 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by segmentation_fault View Post
On a terminal type
"ps -A | grep smb"
This should return the pids of samba processes. If, as on my box, are more than one kill the process with the lowest pid.
Perhaps the parent process sees the child die and respawns it.
yea but the problme is that, I dont wana kill all samba users ( samba proccess ).Only 1 user, not all!
Btw, after 5,6h of searching, I thing this is not possible, becouse windows renew samba connections all the time ( something like keeplive setting ).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
What does kill -0 PID do? asihsh.nakul Linux - Newbie 16 11-14-2012 05:18 PM
kill <pid> does not do anything moskito01 Linux - General 9 08-25-2009 12:20 PM
What is the more easier way to check the pid and kill the pid cmx08 Linux - General 5 09-09-2008 10:57 PM
kill pid ekdya Debian 3 04-18-2006 05:04 PM
kill pid.... won't work with 'pid' variable given.. sachitha Programming 6 03-06-2006 07:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration