<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://mars.merhot.dk/w/index.php?action=history&amp;feed=atom&amp;title=Blandet_Milj%C3%B8%2Fnotat%2Fsmb.conf_V01</id>
		<title>Blandet Miljø/notat/smb.conf V01 - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://mars.merhot.dk/w/index.php?action=history&amp;feed=atom&amp;title=Blandet_Milj%C3%B8%2Fnotat%2Fsmb.conf_V01"/>
		<link rel="alternate" type="text/html" href="http://mars.merhot.dk/w/index.php?title=Blandet_Milj%C3%B8/notat/smb.conf_V01&amp;action=history"/>
		<updated>2026-04-10T07:09:15Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.0</generator>

	<entry>
		<id>http://mars.merhot.dk/w/index.php?title=Blandet_Milj%C3%B8/notat/smb.conf_V01&amp;diff=29425&amp;oldid=prev</id>
		<title>Rael: Created page with &quot;&lt;pre&gt; # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in or...&quot;</title>
		<link rel="alternate" type="text/html" href="http://mars.merhot.dk/w/index.php?title=Blandet_Milj%C3%B8/notat/smb.conf_V01&amp;diff=29425&amp;oldid=prev"/>
				<updated>2015-03-11T09:35:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; # # Sample configuration file for the Samba suite for Debian GNU/Linux. # # # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in or...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#&lt;br /&gt;
# Sample configuration file for the Samba suite for Debian GNU/Linux.&lt;br /&gt;
#&lt;br /&gt;
#&lt;br /&gt;
# This is the main Samba configuration file. You should read the&lt;br /&gt;
# smb.conf(5) manual page in order to understand the options listed&lt;br /&gt;
# here. Samba has a huge number of configurable options most of which &lt;br /&gt;
# are not shown in this example&lt;br /&gt;
#&lt;br /&gt;
# Some options that are often worth tuning have been included as&lt;br /&gt;
# commented-out examples in this file.&lt;br /&gt;
#  - When such options are commented with &amp;quot;;&amp;quot;, the proposed setting&lt;br /&gt;
#    differs from the default Samba behaviour&lt;br /&gt;
#  - When commented with &amp;quot;#&amp;quot;, the proposed setting is the default&lt;br /&gt;
#    behaviour of Samba but the option is considered important&lt;br /&gt;
#    enough to be mentioned here&lt;br /&gt;
#&lt;br /&gt;
# NOTE: Whenever you modify this file you should run the command&lt;br /&gt;
# &amp;quot;testparm&amp;quot; to check that you have not made any basic syntactic &lt;br /&gt;
# errors. &lt;br /&gt;
&lt;br /&gt;
#======================= Global Settings =======================&lt;br /&gt;
&lt;br /&gt;
[global]&lt;br /&gt;
&lt;br /&gt;
## Browsing/Identification ###&lt;br /&gt;
&lt;br /&gt;
# Change this to the workgroup/NT-domain name your Samba server will part of&lt;br /&gt;
   workgroup = WORKGROUP&lt;br /&gt;
&lt;br /&gt;
# server string is the equivalent of the NT Description field&lt;br /&gt;
	server string = %h server (Samba, Ubuntu)&lt;br /&gt;
security = user&lt;br /&gt;
# Windows Internet Name Serving Support Section:&lt;br /&gt;
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server&lt;br /&gt;
#   wins support = no&lt;br /&gt;
&lt;br /&gt;
# WINS Server - Tells the NMBD components of Samba to be a WINS Client&lt;br /&gt;
# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both&lt;br /&gt;
;   wins server = w.x.y.z&lt;br /&gt;
&lt;br /&gt;
# This will prevent nmbd to search for NetBIOS names through DNS.&lt;br /&gt;
   dns proxy = no&lt;br /&gt;
&lt;br /&gt;
#### Networking ####&lt;br /&gt;
&lt;br /&gt;
# The specific set of interfaces / networks to bind to&lt;br /&gt;
# This can be either the interface name or an IP address/netmask;&lt;br /&gt;
# interface names are normally preferred&lt;br /&gt;
;   interfaces = 127.0.0.0/8 eth0&lt;br /&gt;
&lt;br /&gt;
# Only bind to the named interfaces and/or networks; you must use the&lt;br /&gt;
# 'interfaces' option above to use this.&lt;br /&gt;
# It is recommended that you enable this feature if your Samba machine is&lt;br /&gt;
# not protected by a firewall or is a firewall itself.  However, this&lt;br /&gt;
# option cannot handle dynamic or non-broadcast interfaces correctly.&lt;br /&gt;
;   bind interfaces only = yes&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#### Debugging/Accounting ####&lt;br /&gt;
&lt;br /&gt;
# This tells Samba to use a separate log file for each machine&lt;br /&gt;
# that connects&lt;br /&gt;
   log file = /var/log/samba/log.%m&lt;br /&gt;
&lt;br /&gt;
# Cap the size of the individual log files (in KiB).&lt;br /&gt;
   max log size = 1000&lt;br /&gt;
&lt;br /&gt;
# If you want Samba to only log through syslog then set the following&lt;br /&gt;
# parameter to 'yes'.&lt;br /&gt;
#   syslog only = no&lt;br /&gt;
&lt;br /&gt;
# We want Samba to log a minimum amount of information to syslog. Everything&lt;br /&gt;
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log&lt;br /&gt;
# through syslog you should set the following parameter to something higher.&lt;br /&gt;
   syslog = 0&lt;br /&gt;
&lt;br /&gt;
# Do something sensible when Samba crashes: mail the admin a backtrace&lt;br /&gt;
   panic action = /usr/share/samba/panic-action %d&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
####### Authentication #######&lt;br /&gt;
&lt;br /&gt;
# Server role. Defines in which mode Samba will operate. Possible&lt;br /&gt;
# values are &amp;quot;standalone server&amp;quot;, &amp;quot;member server&amp;quot;, &amp;quot;classic primary&lt;br /&gt;
# domain controller&amp;quot;, &amp;quot;classic backup domain controller&amp;quot;, &amp;quot;active&lt;br /&gt;
# directory domain controller&amp;quot;. &lt;br /&gt;
#&lt;br /&gt;
# Most people will want &amp;quot;standalone sever&amp;quot; or &amp;quot;member server&amp;quot;.&lt;br /&gt;
# Running as &amp;quot;active directory domain controller&amp;quot; will require first&lt;br /&gt;
# running &amp;quot;samba-tool domain provision&amp;quot; to wipe databases and create a&lt;br /&gt;
# new domain.&lt;br /&gt;
   server role = standalone server&lt;br /&gt;
&lt;br /&gt;
# If you are using encrypted passwords, Samba will need to know what&lt;br /&gt;
# password database type you are using.  &lt;br /&gt;
   passdb backend = tdbsam&lt;br /&gt;
&lt;br /&gt;
   obey pam restrictions = yes&lt;br /&gt;
&lt;br /&gt;
# This boolean parameter controls whether Samba attempts to sync the Unix&lt;br /&gt;
# password with the SMB password when the encrypted SMB password in the&lt;br /&gt;
# passdb is changed.&lt;br /&gt;
   unix password sync = yes&lt;br /&gt;
&lt;br /&gt;
# For Unix password sync to work on a Debian GNU/Linux system, the following&lt;br /&gt;
# parameters must be set (thanks to Ian Kahan &amp;lt;&amp;lt;kahan@informatik.tu-muenchen.de&amp;gt; for&lt;br /&gt;
# sending the correct chat script for the passwd program in Debian Sarge).&lt;br /&gt;
   passwd program = /usr/bin/passwd %u&lt;br /&gt;
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .&lt;br /&gt;
&lt;br /&gt;
# This boolean controls whether PAM will be used for password changes&lt;br /&gt;
# when requested by an SMB client instead of the program listed in&lt;br /&gt;
# 'passwd program'. The default is 'no'.&lt;br /&gt;
   pam password change = yes&lt;br /&gt;
&lt;br /&gt;
# This option controls how unsuccessful authentication attempts are mapped&lt;br /&gt;
# to anonymous connections&lt;br /&gt;
   map to guest = bad user&lt;br /&gt;
&lt;br /&gt;
########## Domains ###########&lt;br /&gt;
&lt;br /&gt;
#&lt;br /&gt;
# The following settings only takes effect if 'server role = primary&lt;br /&gt;
# classic domain controller', 'server role = backup domain controller'&lt;br /&gt;
# or 'domain logons' is set &lt;br /&gt;
#&lt;br /&gt;
&lt;br /&gt;
# It specifies the location of the user's&lt;br /&gt;
# profile directory from the client point of view) The following&lt;br /&gt;
# required a [profiles] share to be setup on the samba server (see&lt;br /&gt;
# below)&lt;br /&gt;
;   logon path = \\%N\profiles\%U&lt;br /&gt;
# Another common choice is storing the profile in the user's home directory&lt;br /&gt;
# (this is Samba's default)&lt;br /&gt;
#   logon path = \\%N\%U\profile&lt;br /&gt;
&lt;br /&gt;
# The following setting only takes effect if 'domain logons' is set&lt;br /&gt;
# It specifies the location of a user's home directory (from the client&lt;br /&gt;
# point of view)&lt;br /&gt;
;   logon drive = H:&lt;br /&gt;
#   logon home = \\%N\%U&lt;br /&gt;
&lt;br /&gt;
# The following setting only takes effect if 'domain logons' is set&lt;br /&gt;
# It specifies the script to run during logon. The script must be stored&lt;br /&gt;
# in the [netlogon] share&lt;br /&gt;
# NOTE: Must be store in 'DOS' file format convention&lt;br /&gt;
;   logon script = logon.cmd&lt;br /&gt;
&lt;br /&gt;
# This allows Unix users to be created on the domain controller via the SAMR&lt;br /&gt;
# RPC pipe.  The example command creates a user account with a disabled Unix&lt;br /&gt;
# password; please adapt to your needs&lt;br /&gt;
; add user script = /usr/sbin/adduser --quiet --disabled-password --gecos &amp;quot;&amp;quot; %u&lt;br /&gt;
&lt;br /&gt;
# This allows machine accounts to be created on the domain controller via the &lt;br /&gt;
# SAMR RPC pipe.  &lt;br /&gt;
# The following assumes a &amp;quot;machines&amp;quot; group exists on the system&lt;br /&gt;
; add machine script  = /usr/sbin/useradd -g machines -c &amp;quot;%u machine account&amp;quot; -d /var/lib/samba -s /bin/false %u&lt;br /&gt;
&lt;br /&gt;
# This allows Unix groups to be created on the domain controller via the SAMR&lt;br /&gt;
# RPC pipe.  &lt;br /&gt;
; add group script = /usr/sbin/addgroup --force-badname %g&lt;br /&gt;
&lt;br /&gt;
############ Misc ############&lt;br /&gt;
&lt;br /&gt;
# Using the following line enables you to customise your configuration&lt;br /&gt;
# on a per machine basis. The %m gets replaced with the netbios name&lt;br /&gt;
# of the machine that is connecting&lt;br /&gt;
;   include = /home/samba/etc/smb.conf.%m&lt;br /&gt;
&lt;br /&gt;
# Some defaults for winbind (make sure you're not using the ranges&lt;br /&gt;
# for something else.)&lt;br /&gt;
;   idmap uid = 10000-20000&lt;br /&gt;
;   idmap gid = 10000-20000&lt;br /&gt;
;   template shell = /bin/bash&lt;br /&gt;
&lt;br /&gt;
# Setup usershare options to enable non-root users to share folders&lt;br /&gt;
# with the net usershare command.&lt;br /&gt;
&lt;br /&gt;
# Maximum number of usershare. 0 (default) means that usershare is disabled.&lt;br /&gt;
;   usershare max shares = 100&lt;br /&gt;
&lt;br /&gt;
# Allow users who've been granted usershare privileges to create&lt;br /&gt;
# public shares, not just authenticated ones&lt;br /&gt;
   usershare allow guests = yes&lt;br /&gt;
&lt;br /&gt;
#======================= Share Definitions =======================&lt;br /&gt;
&lt;br /&gt;
# Un-comment the following (and tweak the other settings below to suit)&lt;br /&gt;
# to enable the default home directory shares. This will share each&lt;br /&gt;
# user's home directory as \\server\username&lt;br /&gt;
;[homes]&lt;br /&gt;
;   comment = Home Directories&lt;br /&gt;
;   browseable = no&lt;br /&gt;
&lt;br /&gt;
# By default, the home directories are exported read-only. Change the&lt;br /&gt;
# next parameter to 'no' if you want to be able to write to them.&lt;br /&gt;
;   read only = yes&lt;br /&gt;
&lt;br /&gt;
# File creation mask is set to 0700 for security reasons. If you want to&lt;br /&gt;
# create files with group=rw permissions, set next parameter to 0775.&lt;br /&gt;
;   create mask = 0700&lt;br /&gt;
&lt;br /&gt;
# Directory creation mask is set to 0700 for security reasons. If you want to&lt;br /&gt;
# create dirs. with group=rw permissions, set next parameter to 0775.&lt;br /&gt;
;   directory mask = 0700&lt;br /&gt;
&lt;br /&gt;
# By default, \\server\username shares can be connected to by anyone&lt;br /&gt;
# with access to the samba server.&lt;br /&gt;
# Un-comment the following parameter to make sure that only &amp;quot;username&amp;quot;&lt;br /&gt;
# can connect to \\server\username&lt;br /&gt;
# This might need tweaking when using external authentication schemes&lt;br /&gt;
;   valid users = %S&lt;br /&gt;
&lt;br /&gt;
# Un-comment the following and create the netlogon directory for Domain Logons&lt;br /&gt;
# (you need to configure Samba to act as a domain controller too.)&lt;br /&gt;
;[netlogon]&lt;br /&gt;
;   comment = Network Logon Service&lt;br /&gt;
;   path = /home/samba/netlogon&lt;br /&gt;
;   guest ok = yes&lt;br /&gt;
;   read only = yes&lt;br /&gt;
&lt;br /&gt;
# Un-comment the following and create the profiles directory to store&lt;br /&gt;
# users profiles (see the &amp;quot;logon path&amp;quot; option above)&lt;br /&gt;
# (you need to configure Samba to act as a domain controller too.)&lt;br /&gt;
# The path below should be writable by all users so that their&lt;br /&gt;
# profile directory may be created the first time they log on&lt;br /&gt;
;[profiles]&lt;br /&gt;
;   comment = Users profiles&lt;br /&gt;
;   path = /home/samba/profiles&lt;br /&gt;
;   guest ok = no&lt;br /&gt;
;   browseable = no&lt;br /&gt;
;   create mask = 0600&lt;br /&gt;
;   directory mask = 0700&lt;br /&gt;
&lt;br /&gt;
[printers]&lt;br /&gt;
   comment = All Printers&lt;br /&gt;
   browseable = no&lt;br /&gt;
   path = /var/spool/samba&lt;br /&gt;
   printable = yes&lt;br /&gt;
   guest ok = no&lt;br /&gt;
   read only = yes&lt;br /&gt;
   create mask = 0700&lt;br /&gt;
&lt;br /&gt;
# Windows clients look for this share name as a source of downloadable&lt;br /&gt;
# printer drivers&lt;br /&gt;
[print$]&lt;br /&gt;
   comment = Printer Drivers&lt;br /&gt;
   path = /var/lib/samba/printers&lt;br /&gt;
   browseable = yes&lt;br /&gt;
   read only = yes&lt;br /&gt;
   guest ok = no&lt;br /&gt;
# Uncomment to allow remote administration of Windows print drivers.&lt;br /&gt;
# You may need to replace 'lpadmin' with the name of the group your&lt;br /&gt;
# admin users are members of.&lt;br /&gt;
# Please note that you also need to set appropriate Unix permissions&lt;br /&gt;
# to the drivers directory for these users to have write rights in it&lt;br /&gt;
;   write list = root, @lpadmin&lt;br /&gt;
&lt;br /&gt;
[public]&lt;br /&gt;
   comment = Public Directories&lt;br /&gt;
   browseable = yes&lt;br /&gt;
   create mask = 0777&lt;br /&gt;
   directory mask = 0777&lt;br /&gt;
   path = /srv/shares/public&lt;br /&gt;
   guest ok = yes&lt;br /&gt;
   read only = no&lt;br /&gt;
&lt;br /&gt;
[salg]&lt;br /&gt;
   comment = salg project directories&lt;br /&gt;
   browseable = yes&lt;br /&gt;
   create mask = 0770&lt;br /&gt;
   directory mask = 0770&lt;br /&gt;
   path = /srv/shares/salg&lt;br /&gt;
   guest ok = no&lt;br /&gt;
   read only = no&lt;br /&gt;
   valid users = @salg&lt;br /&gt;
&lt;br /&gt;
[teknik]&lt;br /&gt;
   comment = Teknik project directories&lt;br /&gt;
   browseable = yes&lt;br /&gt;
   create mask = 0770&lt;br /&gt;
   directory mask = 0770&lt;br /&gt;
   path = /srv/shares/teknik&lt;br /&gt;
   guest ok = no&lt;br /&gt;
   read only = no&lt;br /&gt;
   valid users = @teknik&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rael</name></author>	</entry>

	</feed>