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

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
lawrencemaria

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

Post 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!)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
kukamuumuka

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

Post 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.
altair4
Level 20
Level 20
Posts: 11460
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 »

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.
Locked

Return to “Networking”