4 # Sample configuration file for the Samba suite for Debian GNU/Linux.
7 # This is the main Samba configuration file. You should read the
8 # smb.conf(5) manual page in order to understand the options listed
9 # here. Samba has a huge number of configurable options most of which
10 # are not shown in this example
13 #======================= Global Settings =======================
17 ## Browsing/Identification ###
19 # Change this to the workgroup/NT-domain name your Samba server will part of
22 # server string is the equivalent of the NT Description field
23 server string = %h server (Samba, Ubuntu)
25 # Windows Internet Name Serving Support Section:
26 # WINS Support - Tells the NMBD component of Samba to enable its WINS Server
29 # Windows clients look for this share name as a source of downloadable
32 comment = All Printers
39 printcap name = /etc/printcap
40 print command = /usr/bin/lpr -P%p -r %s
44 test Samba.lns get conf =
46 { "#comment" = "Sample configuration file for the Samba suite for Debian GNU/Linux." }
49 { "#comment" = "This is the main Samba configuration file. You should read the" }
50 { "#comment" = "smb.conf(5) manual page in order to understand the options listed" }
51 { "#comment" = "here. Samba has a huge number of configurable options most of which" }
52 { "#comment" = "are not shown in this example" }
55 { "#comment" = "======================= Global Settings =======================" }
59 { "#comment" = "# Browsing/Identification ###" }
61 { "#comment" = "Change this to the workgroup/NT-domain name your Samba server will part of" }
62 { "workgroup" = "WORKGROUP" }
64 { "#comment" = "server string is the equivalent of the NT Description field" }
65 { "server string" = "%h server (Samba, Ubuntu)" }
67 { "#comment" = "Windows Internet Name Serving Support Section:" }
68 { "#comment" = "WINS Support - Tells the NMBD component of Samba to enable its WINS Server" }
69 { "#comment" = "wins support = no" }
71 { "#comment" = "Windows clients look for this share name as a source of downloadable" }
72 { "#comment" = "printer drivers" } }
74 { "comment" = "All Printers" }
75 { "browseable" = "no" }
77 { "printable" = "yes" }
80 { "create mode" = "0700" }
81 { "printcap name" = "/etc/printcap" }
82 { "print command" = "/usr/bin/lpr -P%p -r %s" }
83 { "printing" = "cups" } }
85 test Samba.lns get "[test]\ncrazy:entry = foo\n" =
87 {"crazy:entry" = "foo"}}
89 (* Test complex idmap commands with asterisk in key name, ticket #354 *)
90 test Samba.lns get "[test]
92 idmap uid = 1000000-1999999
93 idmap gid = 1000000-1999999
95 idmap config CORP : backend = ad
96 idmap config * : range = 1000-999999\n" =
98 { "idmap backend" = "tdb" }
99 { "idmap uid" = "1000000-1999999" }
100 { "idmap gid" = "1000000-1999999" }
102 { "idmap config CORP : backend" = "ad" }
103 { "idmap config * : range" = "1000-999999" } }