Running ubuntu 8.04 and Samba version 3.0.28a.
I'm trying to restrict the number of directories users can share with the "usershare max shares" option.
I set it to 3 but I can still share directories with 10 files in them from my windows machine (XP).
Here is smb.conf.
[global] wins support = yes netbios name = MY_GATEWAY server string = MY_GATEWAY workgroup = WORKGROUP socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192 passdb backend = tdbsam security = user encrypt passwords = true invalid users = root map to guest = bad user guest account = nobody interfaces = lo, eth1 bind interfaces only = true syslog = 1 syslog only = yes dns proxy = no [B]usershare max shares = 3[/B] [Media] path = /home/ftp/ read only = yes create mask = 0640 directory mask = 0750 guest only = yes guest ok = yes
I ran testparm on my smb.conf and the syntax is correct.