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

Connection sharing, Firewall, Samba..etc
Forum rules
Before you post please read how to get help
Post Reply
lawrencemaria
Level 1
Level 1
Posts: 47
Joined: Tue Nov 15, 2011 4:43 am
Location: Rome, Italy
Contact:

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

Post by lawrencemaria » Thu Mar 08, 2018 11:01 am

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!)
------------------------------------------------------------------
Maria Lawrence

User avatar
administrollaattori
Level 13
Level 13
Posts: 4969
Joined: Tue Sep 03, 2013 4:51 am
Location: Finland
Contact:

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

Post by administrollaattori » Thu Mar 08, 2018 5:11 pm

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.

altair4
Level 19
Level 19
Posts: 9024
Joined: Tue Feb 03, 2009 10:27 am

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

Post by altair4 » Thu Mar 08, 2018 6:14 pm

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.
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.

Post Reply

Return to “Other networking topics”