need the PID of the running smbd - Probs with %d

Peter Samuelson peter at
Tue Jul 11 12:26:08 GMT 2000

[Stephan Lauffer <lauffer at>]
> Ups! Why is %d 26090 ?!
> May I understand %d wrong... I thought it tells me the PID of the
> smbd for the share. Or... hm... will the PID be changed?

There is no "smbd for the share".  smbd processes get spawned on a
per-connection basis, not a per-share basis.  If you have multiple
simultaneous connections to a share, you will have multiple smbd
processes serving it.

Therefore there is no way for `testparm' to give a meaningful answer
for what %d should be in that situation.  What it ends up doing is
giving you its own PID.

Can you explain what you are trying to do?  Perhaps someone can tell
you whether your approach is a good one.


More information about the samba-technical mailing list