[Samba] max connection insa samba

Sébastien Person sebastien.person at insa-rouen.fr
Fri Jan 17 09:59:00 GMT 2003


Hi,

I 've got a problem. I have a big dir to share (it contains big files
hundred of MB each one) and I want that only twice are downloadable at a
time. I want to limit the number of download in fact to 2. I've found
the max connections options I tried but It seems to doesn't work as I
can download more at least 3 files at time.

I also put the lock dir option and that doesn't changes.

here my smb.conf ... If someone had idea ? thanks a lot :) 
version : 2.999+3.0.alpha21-3 for Debian

# Samba config file created using SWAT
# from 127.0.0.1 (127.0.0.1)
# Date: 2003/01/17 11:10:11

# Global parameters
[global]
	server string = %h server (Samba %v)
	security = SHARE
	encrypt passwords = No
	obey pam restrictions = Yes
	passdb backend = tdbsam, unixsam
	passwd program = /usr/bin/passwd %u
	passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
	log level = 1
	syslog = 0
	log file = /var/log/samba/log.%m
	max log size = 1000
	socket options = TCP_NODELAY IPTOS_LOWDELAY
	read raw = yes
	write raw = yes
	oplocks = yes
	max xmit = 65535
	dead time = 15
	name resolve order = wins bcast lmhosts host
	dns proxy = No
	wins server = 172.20.3.107
	ldap ssl = no
	lock dir = /var/run/samba/locks
	panic action = /usr/share/samba/panic-action %d
	comment = Home Directories
	invalid users = root
	directory mask = 0711
	browseable = No

[printers]
	comment = All Printers
	path = /tmp
	create mask = 0700
	printable = Yes

[share]
	path = /share
	read only = No
	create mask = 0700
	guest ok = Yes
	browseable = Yes

[src]
	comment = SRC
	path = /mnt/src
	guest ok = Yes
	browseable = Yes
	available = No

[INSA]
	path = /home/seb/INSA
	guest ok = Yes
	browseable = Yes
	available = No

[doc]
	comment = Documentation
	path = /home/seb/doc
	guest ok = Yes
	browseable = Yes

[zzz]
	guest ok = Yes
	browseable = Yes
	comment = (2 connexions max)
	wide links = no
	level2 oplocks = yes
	path = /media/zzz
	strict locking = yes
	max connections = 2

 
                _______   __
       ( O O ) ( ) | ) \_/        .".
 --oOOo--( )--oOOo----------------/V\---
        Sebastien Person         // \\
     tel.: 06 70 00 08 95       /(   )\
 sebastien.person at insa-rouen.fr  ^'~'^



More information about the samba mailing list