Page 1 of 1

Is there a limit to Maximum clients who can access a Linux Mint based Samba folder share?

Posted: Thu Mar 08, 2018 11:01 am
by lawrencemaria
Running Linux Mint Mate edition 18,3 - 32 bit - I have been trying to use it like a NAS to share files over a network. But the traditional limit of Windows shared folder which caps maximum connectable clients to 20 -seems to be the case for Linux mint as well.

Is there a possibility to increase total number of simultaenous clients/students to access a linux network shared folder to about 40? (For now, the first 20 clients get the folder access. Others dont!)

Re: Is there a limit to Maximum clients who can access a Linux Mint based Samba folder share?

Posted: Thu Mar 08, 2018 5:11 pm
by kukamuumuka
No, if is not set.
https://www.samba.org/samba/docs/using_samba/ch09.html
max connections
This option specifies the maximum number of client connections that a share can have at any given time. Any connections that are attempted after the maximum is reached will be rejected. The default value is 0, which is a special case that allows an unlimited number of connections. You can override it per share as follows:

[accounting]
max connections = 30
This option is useful in the event that you need to limit the number of users who are accessing a licensed program or piece of data concurrently.

Re: Is there a limit to Maximum clients who can access a Linux Mint based Samba folder share?

Posted: Thu Mar 08, 2018 6:14 pm
by altair4
max connections
This option specifies the maximum number of client connections that a share can have at any given time. Any connections that are attempted after the maximum is reached will be rejected. The default value is 0, which is a special case that allows an unlimited number of connections.
Run the following command:

Code: Select all

testparm -sv | grep "max connections"
Or if you have already added it to smb.conf this command:

Code: Select all

testparm -sv /dev/null | grep "max connections"
I think you will find that it is already set to 0 which if the man pages are to be believed means an unlimited number of connections.

I take it this is not a normal home LAN we are talking about? I never had to deal with this issue so ...

And by the way the current definition of this parameter is:
max connections (S)

This option allows the number of simultaneous connections to a service to be limited. If max connections is greater than
0 then connections will be refused if this number of connections to the service are already open. A value of zero mean
an unlimited number of connections may be made.
Which is I think a little clearer.