Difference between revisions of "smb.conf"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m (un-hid navbar header)
Line 6: Line 6:
 
* [[/manpage]]: the official documentation
 
* [[/manpage]]: the official documentation
 
* [[/examples]]: sample config files
 
* [[/examples]]: sample config files
 +
==Parameters==
 +
===[global]===
 +
===[printers]===
 +
''see [[/printers]]''
 +
===[homes]===
 +
===usershares===
 +
Starting with Samba version 3.0.23 the capability for non−root users to add, modify, and delete their own share definitions has been added. This capability is called usershares and is controlled by a set of parameters in the [global] section of the smb.conf. The relevant parameters are :
 +
* {{smb.conf/param|usershare allow guests}} - Controls if usershares can permit guest access.
 +
* {{smb.conf/param|usershare max shares}} - Maximum number of user defined shares allowed.
 +
* {{smb.conf/param|usershare owner only}} - If set only directories owned by the sharing user can be shared.
 +
* {{smb.conf/param|usershare path}} - Points to the directory containing the user defined share definitions. The filesystem permissions on this directory control who can create user defined shares.
 +
* {{smb.conf/param|usershare prefix allow list}} - Comma−separated list of absolute pathnames: only directories below the pathnames in this list are permitted.
 +
* {{smb.conf/param|usershare prefix deny list}} - Comma−separated list of absolute pathnames: directories below the pathnames in this list are prohibited.
 +
* {{smb.conf/param|usershare template share}} - Names a pre-existing share used as a template for creating new usershares. All other share parameters not specified in the user defined share definition are copied from this named share.

Revision as of 15:28, 9 September 2010

Navigation

computing: software: Samba: smb.conf

Overview

smb.conf is the main configuration file for the Samba server, which provides Windows "Network Neighborhood" shares on Linux (and possibly on other non-Windows operating systems).

Articles

Parameters

[global]

[printers]

see /printers

[homes]

usershares

Starting with Samba version 3.0.23 the capability for non−root users to add, modify, and delete their own share definitions has been added. This capability is called usershares and is controlled by a set of parameters in the [global] section of the smb.conf. The relevant parameters are :

  • usershare allow guests - Controls if usershares can permit guest access.
  • usershare max shares - Maximum number of user defined shares allowed.
  • usershare owner only - If set only directories owned by the sharing user can be shared.
  • usershare path - Points to the directory containing the user defined share definitions. The filesystem permissions on this directory control who can create user defined shares.
  • usershare prefix allow list - Comma−separated list of absolute pathnames: only directories below the pathnames in this list are permitted.
  • usershare prefix deny list - Comma−separated list of absolute pathnames: directories below the pathnames in this list are prohibited.
  • usershare template share - Names a pre-existing share used as a template for creating new usershares. All other share parameters not specified in the user defined share definition are copied from this named share.