VirtualBox

Ticket #7628: smb.conf

File smb.conf, 5.4 KB (added by ToddAndMargo, 14 years ago)

Samba configuration file

Line 
1[global]
2
3 workgroup = Pick
4; server string = Samba Server Version %v
5 server string = PPro2Host
6 netbios name = PPro2Host
7
8 interfaces = lo eth0
9 hosts allow = 127. 192.168.255.10 192.168.255.16 192.168.255.18
10
11# --------------------------- Logging Options -----------------------------
12 # logs split per machine
13 log file = /var/log/samba/%m.log
14 # max 50KB per log file, then rotate
15 max log size = 50
16
17# ----------------------- Standalone Server Options ------------------------
18#
19# Security can be set to user, share(deprecated) or server(deprecated)
20#
21# Backend to store user information in. New installations should
22# use either tdbsam or ldapsam. smbpasswd is available for backwards
23# compatibility. tdbsam requires no further configuration.
24
25 security = user
26 passdb backend = tdbsam
27
28
29# ----------------------- Browser Control Options ----------------------------
30#
31# set local master to no if you don't want Samba to become a master
32# browser on your network. Otherwise the normal election rules apply
33#
34# OS Level determines the precedence of this server in master browser
35# elections. The default value should be reasonable
36#
37# Preferred Master causes Samba to force a local browser election on startup
38# and gives it a slightly higher chance of winning the election
39 local master = no
40; os level = 33
41; preferred master = yes
42
43#----------------------------- Name Resolution -------------------------------
44# Windows Internet Name Serving Support Section:
45# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
46#
47# - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
48#
49# - WINS Server: Tells the NMBD components of Samba to be a WINS Client
50#
51# - WINS Proxy: Tells Samba to answer name resolution queries on
52# behalf of a non WINS capable client, for this to work there must be
53# at least one WINS Server on the network. The default is NO.
54#
55# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
56# via DNS nslookups.
57
58; wins support = yes
59; wins server = w.x.y.z
60; wins proxy = yes
61
62; dns proxy = yes
63
64# --------------------------- Printing Options -----------------------------
65#
66# Load Printers let you load automatically the list of printers rather
67# than setting them up individually
68#
69# Cups Options let you pass the cups libs custom options, setting it to raw
70# for example will let you use drivers on your Windows clients
71#
72# Printcap Name let you specify an alternative printcap file
73#
74# You can choose a non default printing system using the Printing option
75
76 load printers = yes
77 cups options = raw
78
79; printcap name = /etc/printcap
80 #obtain list of printers automatically on SystemV
81; printcap name = lpstat
82; printing = cups
83
84# --------------------------- Filesystem Options ---------------------------
85#
86# The following options can be uncommented if the filesystem supports
87# Extended Attributes and they are enabled (usually by the mount option
88# user_xattr). Thess options will let the admin store the DOS attributes
89# in an EA and make samba not mess with the permission bits.
90#
91# Note: these options can also be set just per share, setting them in global
92# makes them the default for all shares
93
94 force create mode = 0000
95 force directory mode = 0000
96 create mode = 0777
97 map archive = yes
98 map hidden = yes
99 map read only = yes
100 map system = yes
101 store dos attributes = yes
102
103
104#============================ Share Definitions ==============================
105
106#[homes]
107 #comment = Home Directories
108 #browseable = no
109 #writable = yes
110#; valid users = %S
111#; valid users = MYDOMAIN\%S
112
113#[printers]
114 #comment = All Printers
115 #path = /var/spool/samba
116 #browseable = no
117 #guest ok = no
118 #writable = no
119 #printable = yes
120#
121# Un-comment the following and create the netlogon directory for Domain Logons
122; [netlogon]
123; comment = Network Logon Service
124; path = /var/lib/samba/netlogon
125; guest ok = yes
126; writable = no
127; share modes = no
128
129
130# Un-comment the following to provide a specific roving profile share
131# the default is to use the user's home directory
132; [Profiles]
133; path = /var/lib/samba/profiles
134; browseable = no
135; guest ok = yes
136
137
138# A publicly accessible directory, but read only, except for people in
139# the "staff" group
140; [public]
141; comment = Public Stuff
142; path = /home/samba
143; public = yes
144; writable = yes
145; printable = no
146; write list = +staff
147
148 [vm-backups]
149 comment = Backup directory for Cobian Backup on PPro2Host
150 path = /home/vm-backups
151 public = yes
152 writable = yes
153 printable = no
154# valid users = PICK\todd,PICK\billy,PICK\mark
155 valid users = todd,billy,mark
156 write list = @drivers
157 read list = @pick,@drivers
158 force group = pick
159 force user = public
160 locking = yes
161; map archive owner execute bit must include 0100
162; map system group execute bit must include 0010
163; map hidden world execute bit must include 0001
164; Note: after doing all the above map stuff, it is a good idea to do
165; a mass chmod to 2766 (Read Only=off, Archive=on, Hidden=off).
166; And, you definately want hidden to be turned off!!!
167 force create mode = 0000
168 create mode = 0777
169 force directory mode = 0000
170 directory mode = 0777
171 map archive = yes
172 map system = yes
173 map hidden = yes
174 public = no
175
176 level2 oplocks = False
177; oplocks = yes
178 oplocks = no
179
180 writable = yes
181 printable = no
182 browseable = yes
183
184
185 [Drivers-Windows]
186 comment = Drivers-Windows directory on PPro2Host
187 path = /home/Drivers-Windows
188 public = yes
189 writable = yes
190 printable = no
191

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy