Web lists-archives.com

[Samba] Is there a limit on Number of users connecting share




Dear Devels,

samba-4.2.3-10.el7.x86_64

# vim smb.conf
[global]
        workgroup = MYGROUP
        server string = Samba Server Version %v
        log file = /var/log/samba/log.%m
        max log size = 50
        security = user
        passdb backend = tdbsam
        load printers = yes
        cups options = raw
        server signing = auto
        server signing = mandatory
[homes]
        comment = Home Directories
        browseable = no
        writable = yes
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
 [test]
        comment = samba share
        path = /test
        guest ok = no
        write list = @CAT
        browseable = yes
        create mask = 0755
        directory mask = 0775
        blocking locks = no
        block size = 4096

Here CAT is local group.

# id catuser
uid=5060(catuser) gid=1033(CAT) groups=1033(CAT)


For my customer, When 200+ User access /test (using catuser). Some users can access share but blank contents.

In smb logs:
For passing user:
01hwcl858826 (ipv4:10.29.180.45:60627) connect to service test initially as user catuser (uid=5060, gid=1033) (pid 5286)
check_reduced_name: . reduced to /test
unix_mode(.) returning 0744
check_reduced_name [CAT/CAT_658/PROJECT/EXTERIOR/DG] [/test]



For failing user:
01hw1027178 (ipv4:172.29.208.178:54638) connect to service scratch initially as user catuser (uid=5060, gid=1033) (pid 28686)
check_reduced_name: . reduced to /test
unix_mode(.) returning 0744
checking for home directory test.ws <http://scratch.ws/>  gave (NULL)
checking whether test.ws <http://scratch.ws/>  is a valid printer name...


Query:
1. Is there a limit on max number of connections to share? There must be what's the max?
2. Is using force user, force group good option here?
3. Is there limit on max number of files opened, Can this issue be related to this?
4. Why in failing case it checking 'home dir, Printers'?


-- 
Thanks
Amit Kumar
!!If you stumble, get back up. 
What happened yesterday, no longer matters.
Today is another day to move closer to your GOAL!!

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba