[Samba] Samba4 - List of options for smb.conf

Andrew Bartlett abartlet at samba.org
Tue May 25 17:08:14 MDT 2010


On Mon, 2010-05-24 at 20:33 +0100, Lukasz Zalewski wrote:
> On 22/04/2010 12:14, Andrew Bartlett wrote:
> > On Tue, 2010-04-20 at 12:44 -0400, Stuart Wehrly wrote:
> >> Is there a list of options for smb.conf?
> >
> > Sadly Samba4 does lack documentation.  But testparm -v from Samba4
> > should get you what you want.
> >
> > Andrew Bartlett
> >
> >
> 
> Hi Andrew,
> This seems to show some of the default parameters, but what about 
> non-default/optional ones (like share permissions) and % variables?
> Seems like %U and %G are not honoured, and have been replaced by longer 
> version, i.e. testparam -v shows two of them
> template homedir = /home/%WORKGROUP%/%ACCOUNTNAME%
> 
> Can one assume that %G will be %GROUPNAME%?
> Is there a validation schema/definition file for those parameters? 
> Alternatively which bit of code is responsible for parsing and 
> validating them?

The code is in param/loadparm.c.

The % subs are rather different in Samba4 at the moment, because we
don't support them generally, rather in specific places.  For some
things that are now stored in the directory, the sub is done on the
client side (ie, the standard windows way), while for those that must be
resolved on the server (such as template homedir) these are hard coded
in their particular uses. 

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org
Samba Developer, Cisco Inc.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba/attachments/20100526/5531dc25/attachment.pgp>


More information about the samba mailing list