Ron Daniel
2009-Apr-16 04:14 UTC
[Samba] Problem with Samba and Windows Terminal Server 2008
Hello all, We have a Windows 2008 Terminal Server which people connect into to run their programs. We are getting upwards of 60 people connecting in at any time. We are seeing error messages from the application complaining that it can't access one of the files on one of the shares. I have read that this problem is likely to be due to the fact that we run one machine as a terminal server and there is only one netbios host being used by mutliple people. The paper I have read from HP refers to registry key called "MultiUserEnabled" on earlier versions of windows terminal server needs to be set to 1 in order for the father smbd process to recognise different sessions connecting from the one host. The paper is at http://www.docs.hp.com/en/12131/Samba-TerminalServer_106.pdf Previously we were using a WIN4LIN terminal server which assigned unique hostnames to each users session. We are not running a domain. The samba server is a Solaris 9 box. The samba verson is 3.0.9. The config file is as follows. Its very simple <<start of insertion>> # Samba config file created using SWAT # Global parameters [global] workgroup = UNIX log file = /var/samba/log/log.%m os level = 255 create mask = 0660 directory mask = 0770 print command = /usr/lpplus/bin/dcclp -c -f plain -o nobanner -d%p %s >> /tmp/%p.log ; rm %s [tmp] comment = temprorary files path = /tmp read only = No guest ok = Yes browseable = No [roothome] comment = home root directory path = /home browseable = No [export_home] comment = home directory path = /home browseable = No [home] comment = Home Directory path = /home/%u read only = No [usr] comment = usr directory path = /usr browseable = No [progress] comment = Progress Users path = /Progress/Client read only = No [public] comment = Public Stuff path = /public read only = No guest ok = Yes [free] comment = IT Stuff path = /free read only = No guest ok = Yes <<end of insertion>> Note that I have removed a number of printer and other file shares not relevant to this problem. The problem we are getting is on the "Progress" share. The contents of the [global] section from the full config per the swat page is as follows : <<start of insertion>> # Samba config file created using SWAT # from 10.153.2.24 (10.153.2.24) # Date: 2009/04/15 17:26:54 # Global parameters [global] dos charset = CP850 unix charset = UTF-8 display charset = LOCALE workgroup = UNIX netbios name = SIMSNSW netbios aliases netbios scope server string = Samba 3.0.9 interfaces bind interfaces only = No security = USER auth methods encrypt passwords = Yes update encrypted = No client schannel = Auto server schannel = Auto allow trusted domains = Yes hosts equiv min password length = 5 map to guest = Never null passwords = No obey pam restrictions = No password server = * smb passwd file = /usr/local/samba/private/smbpasswd private dir = /usr/local/samba/private passdb backend = smbpasswd algorithmic rid base = 1000 root directory guest account = nobody pam password change = No passwd program passwd chat = *new*password* %n\n *new*password* %n\n *changed* passwd chat debug = No passwd chat timeout = 2 check password script username map password level = 0 username level = 0 unix password sync = No restrict anonymous = 0 lanman auth = Yes ntlm auth = Yes client NTLMv2 auth = No client lanman auth = Yes client plaintext auth = Yes preload modules use kerberos keytab = No log level = 1 syslog = 1 syslog only = No log file = /var/samba/log/log.%m max log size = 5000 debug timestamp = Yes debug hires timestamp = No debug pid = No debug uid = No smb ports = 445 139 large readwrite = Yes max protocol = NT1 min protocol = CORE read bmpx = No read raw = Yes write raw = Yes disable netbios = No acl compatibility defer sharing violations = Yes nt pipe support = Yes nt status support = Yes announce version = 4.9 announce as = NT max mux = 50 max xmit = 16644 name resolve order = lmhosts wins host bcast max ttl = 259200 max wins ttl = 518400 min wins ttl = 21600 time server = No unix extensions = Yes use spnego = Yes client signing = auto server signing = No client use spnego = Yes change notify timeout = 60 deadtime = 0 getwd cache = Yes keepalive = 300 kernel change notify = Yes lpq cache time = 10 max smbd processes = 0 paranoid server security = Yes max disk size = 0 max open files = 10000 socket options = TCP_NODELAY use mmap = Yes hostname lookups = No name cache timeout = 660 load printers = Yes printcap cache time = 0 printcap name = lpstat cups server disable spoolss = No enumports command addprinter command deleteprinter command show add printer wizard = Yes os2 driver map mangling method = hash2 mangle prefix = 1 stat cache = Yes machine password timeout = 604800 add user script delete user script add group script delete group script add user to group script delete user from group script set primary group script add machine script shutdown script abort shutdown script logon script logon path = \\%N\%U\profile logon drive logon home = \\%N\%U domain logons = No os level = 255 lm announce = Auto lm interval = 60 preferred master = Auto local master = Yes domain master = Auto browse list = Yes enhanced browsing = Yes dns proxy = Yes wins proxy = No wins server wins support = No wins hook wins partners kernel oplocks = Yes lock spin count = 3 lock spin time = 10 oplock break wait time = 0 ldap admin dn ldap delete dn = No ldap filter = (uid=%u) ldap group suffix ldap idmap suffix ldap machine suffix ldap passwd sync = no ldap replication sleep = 1000 ldap suffix ldap ssl ldap timeout = 15 ldap user suffix add share command change share command delete share command config file preload lock directory = /usr/local/samba/var/locks pid directory = /usr/local/samba/var/locks utmp directory wtmp directory utmp = No default service message command dfree command get quota command set quota command remote announce remote browse sync socket address = 0.0.0.0 homedir map afs username map time offset = 0 NIS homedir = No panic action host msdfs = No enable rid algorithm = Yes idmap backend idmap uid idmap gid template primary group = nobody template homedir = /home/%D/%U template shell = /bin/false winbind separator = \ winbind cache time = 300 winbind enable local accounts = No winbind enum users = Yes winbind enum groups = Yes winbind use default domain = No winbind trusted domains only = No winbind nested groups = No comment path username invalid users valid users admin users read list write list printer admin force user force group read only = Yes create mask = 0660 force create mode = 00 security mask = 0777 force security mode = 00 directory mask = 0770 force directory mode = 00 directory security mask = 0777 force directory security mode = 00 force unknown acl user = No inherit permissions = No inherit acls = No guest only = No guest ok = No only user = No hosts allow hosts deny ea support = No nt acl support = Yes profile acls = No map acl inherit = No afs share = No block size = 1024 max connections = 0 min print space = 0 strict allocate = No strict sync = No sync always = No use sendfile = No write cache size = 0 max reported print jobs = 0 max print jobs = 1000 printable = No printing = sysv cups options print command = /usr/lpplus/bin/dcclp -c -f plain -o nobanner -d%p %s >> /tmp/%p.log ; rm %s lpq command = lpstat -o%p lprm command = cancel %p-%j lppause command = lp -i %p-%j -H hold lpresume command = lp -i %p-%j -H resume queuepause command = disable %p queueresume command = enable %p printer name use client driver = No default devmode = No force printername = No default case = lower case sensitive = Auto preserve case = Yes short preserve case = Yes mangling char = ~ hide dot files = Yes hide special files = No hide unreadable = No hide unwriteable files = No delete veto files = No veto files hide files veto oplock files map system = No map hidden = No map archive = Yes mangled names = Yes mangled map store dos attributes = No browseable = Yes blocking locks = Yes csc policy = manual fake oplocks = No locking = Yes oplocks = Yes level2 oplocks = Yes oplock contention limit = 2 posix locking = Yes strict locking = Yes share modes = Yes copy include preexec preexec close = No postexec root preexec root preexec close = No root postexec available = Yes volume fstype = NTFS set directory = No wide links = Yes follow symlinks = Yes dont descend magic script magic output delete readonly = No dos filemode = No dos filetimes = No dos filetime resolution = No fake directory create times = No vfs objects msdfs root = No msdfs proxy <<end of insertion>> The last 200 or so lines of the the log file for /var/log/%m where %m is milts01 (the name of the terminal server) <<start of insertion>> [2009/04/15 15:19:48, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:19:48, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:19:51, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:19:51, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:05, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:05, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:12, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:12, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:20, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:20, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:23, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:23, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:32, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:32, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:43, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:43, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:20:43, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:20:43, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:28, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:28, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:37, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:37, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:43, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:43, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:45, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:45, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:50, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user smarks (uid=60613, gid=100) (pid 20808) [2009/04/15 15:21:50, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user smarks (uid=60613, gid=100) (pid 20808) [2009/04/15 15:21:55, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:55, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:21:55, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 15:21:55, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 15:22:21, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:22:21, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:23:11, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:23:11, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:23:16, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:23:16, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:25:04, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user aarthur (uid=1019, gid=100) (pid 20808) [2009/04/15 15:25:05, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user aarthur (uid=1019, gid=100) (pid 20808) [2009/04/15 15:25:32, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user drundell (uid=60385, gid=100) (pid 20808) [2009/04/15 15:25:32, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user drundell (uid=60385, gid=100) (pid 20808) [2009/04/15 15:25:58, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:25:58, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:26:26, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:26:26, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:26:31, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user sshalabi (uid=60314, gid=100) (pid 20808) [2009/04/15 15:26:31, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user sshalabi (uid=60314, gid=100) (pid 20808) [2009/04/15 15:26:31, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user kfell (uid=60632, gid=100) (pid 20808) [2009/04/15 15:26:32, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user kfell (uid=60632, gid=100) (pid 20808) [2009/04/15 15:29:51, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user syoung (uid=60619, gid=100) (pid 20808) [2009/04/15 15:29:53, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user syoung (uid=60619, gid=100) (pid 20808) [2009/04/15 15:30:14, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:30:14, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:30:48, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:30:48, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:33:35, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:33:35, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:36:05, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:36:05, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:36:08, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user pwilson (uid=60517, gid=100) (pid 20808) [2009/04/15 15:36:08, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user pwilson (uid=60517, gid=100) (pid 20808) [2009/04/15 15:38:24, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:38:24, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:39:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user rwilson (uid=60442, gid=100) (pid 20808) [2009/04/15 15:39:07, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user rwilson (uid=60442, gid=100) (pid 20808) [2009/04/15 15:39:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:39:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:40:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user gnazari (uid=60335, gid=100) (pid 20808) [2009/04/15 15:40:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user gnazari (uid=60335, gid=100) (pid 20808) [2009/04/15 15:40:38, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:40:38, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:40:55, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:40:55, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:45:34, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user sshalabi (uid=60314, gid=100) (pid 20808) [2009/04/15 15:45:36, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user sshalabi (uid=60314, gid=100) (pid 20808) [2009/04/15 15:48:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:48:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:48:53, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user waynep (uid=1111, gid=100) (pid 20808) [2009/04/15 15:48:53, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user waynep (uid=1111, gid=100) (pid 20808) [2009/04/15 15:50:06, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:50:06, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:50:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service public initially as user pjain (uid=60400, gid=100) (pid 20808) [2009/04/15 15:50:45, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service public [2009/04/15 15:50:57, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user aarthur (uid=1019, gid=100) (pid 20808) [2009/04/15 15:50:59, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user aarthur (uid=1019, gid=100) (pid 20808) [2009/04/15 15:51:46, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:51:46, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:52:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:52:09, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:53:43, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:53:43, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:54:45, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user rwilson (uid=60442, gid=100) (pid 20808) [2009/04/15 15:54:46, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user rwilson (uid=60442, gid=100) (pid 20808) [2009/04/15 15:55:24, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:55:24, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service public [2009/04/15 15:55:24, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:55:46, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:55:46, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:58:00, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:58:00, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service public [2009/04/15 15:58:00, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 15:58:16, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 15:58:16, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:00:13, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user dbrache (uid=60522, gid=100) (pid 20808) [2009/04/15 16:00:14, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user wower (uid=60048, gid=100) (pid 20808) [2009/04/15 16:00:14, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user dbrache (uid=60522, gid=100) (pid 20808) [2009/04/15 16:00:14, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user wower (uid=60048, gid=100) (pid 20808) [2009/04/15 16:00:50, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user klevy (uid=60361, gid=100) (pid 20808) [2009/04/15 16:00:50, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user klevy (uid=60361, gid=100) (pid 20808) [2009/04/15 16:01:17, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 16:01:17, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 16:01:41, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user peterw (uid=60207, gid=100) (pid 20808) [2009/04/15 16:01:42, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user peterw (uid=60207, gid=100) (pid 20808) [2009/04/15 16:01:42, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 16:01:42, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:02:03, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user glara (uid=60515, gid=100) (pid 21519) [2009/04/15 16:02:42, 0] passdb/pdb_smbpasswd.c:startsmbfilepwent(204) startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files [2009/04/15 16:02:42, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) Unable to open passdb database. [2009/04/15 16:02:53, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user glara (uid=60515, gid=100) (pid 20808) [2009/04/15 16:02:54, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user glara (uid=60515, gid=100) (pid 20808) [2009/04/15 16:03:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service progress initially as user jstalker (uid=60540, gid=100) (pid 20808) [2009/04/15 16:03:06, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:03:06, 1] smbd/service.c:make_connection_snum(648) milts01 (10.202.1.114) connect to service home initially as user jstalker (uid=60540, gid=100) (pid 20808) [2009/04/15 16:03:23, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 16:03:23, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:04:41, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 16:04:41, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:05:14, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home [2009/04/15 16:05:14, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service progress [2009/04/15 16:06:43, 1] smbd/service.c:close_cnum(836) milts01 (10.202.1.114) closed connection to service home <<end of insertion>> Any help provided will be hugely appreciated Kind Regards Ron Daniel
Jeremy Allison
2009-Apr-16 04:48 UTC
[Samba] Problem with Samba and Windows Terminal Server 2008
On Thu, Apr 16, 2009 at 02:09:06PM +1000, Ron Daniel wrote:> The samba server is a Solaris 9 box. > The samba verson is 3.0.9.This version of Samba is beyond ancient. You really need to upgrade.> startsmbfilepwent_internal: unable to open file /usr/local/samba/private/smbpasswd. Error was: Too many open files > [2009/04/15 15:19:48, 0] passdb/pdb_smbpasswd.c:smbpasswd_getsampwnam(1326) > Unable to open passdb database.You're running out of file descriptors. Increase the system limit. See this page : http://e-docs.bea.com/wls/docs81/perform/HWTuning.html#1119561 might help. Jeremy.
Eric Roseme
2009-Apr-16 15:35 UTC
[Samba] Problem with Samba and Windows Terminal Server 2008
Ron Daniel wrote:> Hello all, > > We have a Windows 2008 Terminal Server which people connect into to run their programs. We are getting upwards of 60 people connecting in at any time. We are seeing error messages from the application complaining that it can't access one of the files on one of the shares. I have read that this problem is likely to be due to the fact that we run one machine as a terminal server and there is only one netbios host being used by mutliple people. The paper I have read from HP refers to registry key called "MultiUserEnabled" on earlier versions of windows terminal server needs to be set to 1 in order for the father smbd process to recognise different sessions connecting from the one host. > > The paper is at http://www.docs.hp.com/en/12131/Samba-TerminalServer_106.pdf >Oops - that's my paper. Sorry, I have not looked at 2008 for the parameter yet. FYI - for both 2000 and 2003 Microsoft delayed rolling it forward for a few years. Many customers were left hanging both times. So it is possible that the parm is not on 2008 - I did a quick google and did not get any hits, but they have changed the name for each release, so that is not definitive. I'll look around this afternoon and see if there are any clues that 2008 has a newly-named mulit-user parm. Eric Roseme