Find the answer to your Linux question:
Results 1 to 3 of 3

Thread: help in SMB

Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

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

  2. #2
    Just Joined! rohan_nakar's Avatar
    Join Date
    Dec 2006


    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.

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

  4. $spacer_open

Posting Permissions

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