Operating System - HP-UX
1832506 Members
4799 Online
110043 Solutions
New Discussion

Samba only show one PID for all sessions

 
bfrench
Advisor

Samba only show one PID for all sessions

We have two NT systems mounting with samba to a HP system.
If you look below you will notice that there are only two PIDS (one
for each system) when I run smbstatus.

Samba is not breaking the PID up per user or per connection.

28871 sahin sas nt2ts-gxp-sasa
28871 barneta1 sas nt2ts-gxp-sasa
28871 brandow sas nt2ts-gxp-sasa
212 menket sas nt2ts-gxp-sasb
28871 culverwe sas nt2ts-gxp-sasa
212 spiesha sas nt2ts-gxp-sasb
212 stroupe sas nt2ts-gxp-sasb
28871 kilgalle sas nt2ts-gxp-sasa
212 smarrell sas nt2ts-gxp-sasb
28871 vieth sas nt2ts-gxp-sasa
212 muellekn sas nt2ts-gxp-sasb
28871 beckett sas nt2ts-gxp-sasa
28871 lawrence sas nt2ts-gxp-sasa
212 rubin sas nt2ts-gxp-sasb
28871 tilkec sas nt2ts-gxp-sasa
212 litzsing sas nt2ts-gxp-sasb
28871 harley sas nt2ts-gxp-sasa
28871 guglielj sas nt2ts-gxp-sasa
28871 fichtner sas nt2ts-gxp-sasa
212 yollow sas nt2ts-gxp-sasb
212 wur sas nt2ts-gxp-sasb
28871 egglestk sas nt2ts-gxp-sasa
212 weinkauf sas nt2ts-gxp-sasb
28871 forst sas nt2ts-gxp-sasa
28871 cimbi sas nt2ts-gxp-sasa

Here is my smb.conf file. Please let me know if I should add any
additional options

[global]
workgroup = SIE_nx
netbios name = HPS-SAS1
socket options = TCP_NODELAY IPTOS_THROUGHPUT
server string = "SAS on HP-UX Productive Environment"
security = user
os level = 20
encrypt passwords = Yes
wins server = xx.xx.xx.xx xx.xx.xx.xx
hosts allow = xx.xx.xx.xx xx.xx.xx.xx xx.xx.xx.xx xx.xx.xx.xx
xx.xx.xx.xx xx.xx.xx.xx xx.xx.xx.xx
[homes]
comment = Your homedirectory
read only = No
browsable = No

[Projects]
comment = SAS Projectfolder
writeable = yes
write list = @BROWSER
path = /sas/data



Two questions. Is this correct? If not how do I fix it?

Thanks,
Brian
7 REPLIES 7
Ivan Ferreira
Honored Contributor

Re: Samba only show one PID for all sessions

From the output of smbstatus you can see that for each service connection to a host, a PID is asociated.

Run sbmstatus to match your connections to PIDs.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
bfrench
Advisor

Re: Samba only show one PID for all sessions

I'm not sure I understand your response. When I run smbstatus I get the output listed above. I think I should have more the 2 PID (one per system connecting) shouldn't I have a defferent PID for each user?

Thanks,
Brian
Ivan Ferreira
Honored Contributor

Re: Samba only show one PID for all sessions

Sorry, I did not verify the output of smbstatus.

Check "max smbd processes" value. Use testparm -v to verify.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
bfrench
Advisor

Re: Samba only show one PID for all sessions

Value of Max smbd processes

max smbd processes = 0
Steven E. Protter
Exalted Contributor

Re: Samba only show one PID for all sessions

Shalom,

Not correct. Restart the service.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
bfrench
Advisor

Re: Samba only show one PID for all sessions

From the man page.

Default: max smbd processes = 0

I have not changed it so it's still at the default value. Should I increase this value?

I restarted and got the same value with

./testparm -v | grep smb
max smbd processes = 0
bfrench
Advisor

Re: Samba only show one PID for all sessions

I change the value on the test server and brought up two sessions. Both sessions have the same PID

New max smbd value
max smbd processes = 1000


Samba version 3.0.22 based HP CIFS Server A.02.03
PID Username Group Machine
-------------------------------------------------------------------
6456 french sas nt2ts-gxp-sasb (10.34.201.143)
6456 root sys nt2ts-gxp-sasb (10.34.201.143)

Service pid machine Connected at
-------------------------------------------------------
Projects 6456 nt2ts-gxp-sasb Thu May 31 21:32:11 2007
IPC$ 6456 nt2ts-gxp-sasb Thu May 31 21:32:11 2007
Projects 6456 nt2ts-gxp-sasb Thu May 31 21:30:28 2007

Locked files:
Pid DenyMode Access R/W Oplock SharePath Name
----------------------------------------------------------------------------------------
6456 DENY_NONE 0x100001 RDONLY NONE /sas/data . Thu May 31 21:30:31 2007
6456 DENY_NONE 0x100001 RDONLY NONE /sas/data . Thu May 31 21:32:21 2007