Results 1 to 3 of 3
hi is there any option to set Maximum number of user connected to that particular directory share by SMB server. in short shall i able to know the maximum number ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-04-2007 #1
- Join Date
- Nov 2006
help in SMB
is there any option to set Maximum number of user connected to that particular directory share by SMB server.
in short shall i able to know the maximum number of user connected and number of user access to that particular share directory share by smb.
i have written C program to get the share information but i m not able to know the limit of user and number of user connected to that particular directory.
is there any facility in smb.conf then plz suggest me.
- 01-04-2007 #2
Please post your topics at proper forums to get the proper help...
u should've posted ur topic here...
and do mention ur system info, linux flavour, kernel version, etc...
this will help us to answer ur question.
- 01-04-2007 #3
I'm not aware of any facility in Samba that lets you do this directly. You might be able to do something yourself with a little clever scripting, though.
Samba supports 'preexec' and 'postexec' directives, that can allow a script to be run whenever a connection is made and released. You could use this to count the connections to a particular service, keeping a running total in a temp file somewhere. Samba can also be set such that if the 'preexec' returns a non-zero value, the logon attempt fails. Take a look throught the man page for 'smb.conf' for detailed explanations of these directives.Linux user #126863 - see http://linuxcounter.net/