Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Nov 2006
    Posts
    16

    Exclamation help in SMB


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

  2. #2
    Just Joined! rohan_nakar's Avatar
    Join Date
    Dec 2006
    Location
    India
    Posts
    45

    Unhappy

    Please post your topics at proper forums to get the proper help...

    u should've posted ur topic here...
    http://www.linuxforums.org/forum/servers/

    and do mention ur system info, linux flavour, kernel version, etc...
    this will help us to answer ur question.

  3. #3
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,914
    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/

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •