Chinaunix首页 | 论坛 | 博客
  • 博客访问: 49336
  • 博文数量: 19
  • 博客积分: 307
  • 博客等级: 二等列兵
  • 技术积分: 170
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-03 21:01
文章分类
文章存档

2014年(6)

2012年(13)

我的朋友

分类: LINUX

2012-08-06 15:32:34

 [global]
 58
 59 # ----------------------- Network Related Options -------------------------
 60 #
 61 # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
 62 #
 63 # server string is the equivalent of the NT Description field
 64 #
 65 # netbios name can be used to specify a server name not tied to the hostname
 66 #
 67 # Interfaces lets you configure Samba to use multiple interfaces
 68 # If you have multiple network interfaces then you can list the ones
 69 # you want to listen on (never omit localhost)
 70 #
 71 # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can
 72 # specifiy it as a per share option as well
 73 #
 74         workgroup = YCSC
 75         server string = Samba Server Version %v
 76         display charset=utf8
 77         dos charset=cp950
 78         log file=/var/log/samba/%m.log
 79         max log size=50
 80         netbios name = YCSCSERVER
 81         template shell=/bin/false
 82         socket options=TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 83 ;       interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
 84 ;       hosts allow = 127. 192.168.12. 192.168.13.
 85
 86 # --------------------------- Logging Options -----------------------------
 87 #
 88 # Log File let you specify where to put logs and how to split them up.
 89 #
 90 # Max Log Size let you specify the max size log files should reach
 91
 92         # logs split per machine
 93 #       log file = /var/log/samba/%m.log
 94         # max 50KB per log file, then rotate
 95 #       max log size = 50
 96
 97 # ----------------------- Standalone Server Options ------------------------
 98 #
 # Security can be set to user, share(deprecated) or server(deprecated)
100 #
101 # Backend to store user information in. New installations should
102 # use either tdbsam or ldapsam. smbpasswd is available for backwards
103 # compatibility. tdbsam requires no further configuration.
104
105         security = user
106 #       passdb backend = tdbsam
107 #       encrypt password = yes
108
109         smb passwd file=/etc/samba/smbpasswd
110 # ----------------------- Domain Members Options ------------------------
111 #
112 # Security must be set to domain or ads
113 #
114 # Use the realm option only with security = ads
115 # Specifies the Active Directory realm the host is part of
116 #
117 # Backend to store user information in. New installations should
118 # use either tdbsam or ldapsam. smbpasswd is available for backwards
119 # compatibility. tdbsam requires no further configuration.
120 #
121 # Use password server option only with security = server or if you can't
122 # use the DNS to locate Domain Controllers
123 # The argument list may include:
124 #   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
125 # or to auto-locate the domain controller/s
126 #   password server = *
127
128
129 ;       security = domain
130 ;       passdb backend = tdbsam
131 ;       realm = MY_REALM
132
133 ;       password server =
134
135 # ----------------------- Domain Controller Options ------------------------
136 #
137 # Security must be set to user for domain controllers
138 #
139 # Backend to store user information in. New installations should
140 # use either tdbsam or ldapsam. smbpasswd is available for backwards
141 # compatibility. tdbsam requires no further configuration.
#
143 # Domain Master specifies Samba to be the Domain Master Browser. This
144 # allows Samba to collate browse lists between subnets. Don't use this
145 # if you already have a Windows NT domain controller doing this job
146 #
147 # Domain Logons let Samba be a domain logon server for Windows workstations.
148 #
149 # Logon Scrpit let yuou specify a script to be run at login time on the client
150 # You need to provide it in a share called NETLOGON
151 #
152 # Logon Path let you specify where user profiles are stored (UNC path)
153 #
154 # Various scripts can be used on a domain controller or stand-alone
155 # machine to add or delete corresponding unix accounts
156 #
157 ;       security = user
158 ;       passdb backend = tdbsam
159
160 ;       domain master = yes
161 ;       domain logons = yes
162
163         # the login script name depends on the machine name
164 ;       logon script = %m.bat
165         # the login script name depends on the unix user used
166 ;       logon script = %u.bat
167 ;       logon path =

168         # disables profiles support by specifing an empty path
169 ;       logon path =
170
171 ;       add user script = /usr/sbin/useradd "%u" -n -g users
172 ;       add group script = /usr/sbin/groupadd "%g"
173 ;       add machine script = /usr/sbin/useradd -n -c "Workstation (%u)" -M -d /nohome -s /bin/false "%u"
174 ;       delete user script = /usr/sbin/userdel "%u"
175 ;       delete user from group script = /usr/sbin/userdel "%u" "%g"
176 ;       delete group script = /usr/sbin/groupdel "%g"
177
178
179 # ----------------------- Browser Control Options ----------------------------
180 #
181 # set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
183 #
184 # OS Level determines the precedence of this server in master browser
185 # elections. The default value should be reasonable
186 #
187 # Preferred Master causes Samba to force a local browser election on startup
188 # and gives it a slightly higher chance of winning the election
189 ;       local master = no
190 ;       os level = 33
191 ;       preferred master = yes
192
193 #----------------------------- Name Resolution -------------------------------
194 # Windows Internet Name Serving Support Section:
195 # Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
196 #
197 # - WINS Support: Tells the NMBD component of Samba to enable it's WINS Server
198 #
199 # - WINS Server: Tells the NMBD components of Samba to be a WINS Client
200 #
201 # - WINS Proxy: Tells Samba to answer name resolution queries on
202 #   behalf of a non WINS capable client, for this to work there must be
203 #   at least one        WINS Server on the network. The default is NO.
204 #
205 # DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
206 # via DNS nslookups.
207
208 ;       wins support = yes
209 ;       wins server = w.x.y.z
210 ;       wins proxy = yes
211
212 ;       dns proxy = yes
213         dns proxy = no
214         name resolve order=lmhost bcast host
215 # --------------------------- Printing Options -----------------------------
216 #
217 # Load Printers let you load automatically the list of printers rather
218 # than setting them up individually
219 #
220 # Cups Options let you pass the cups libs custom options, setting it to raw
221 # for example will let you use drivers on your Windows clients
222 #
223 # Printcap Name let you specify an alternative printcap file
224 #
 # You can choose a non default printing system using the Printing option
226
227         load printers = yes
228         cups options = raw
229
230 ;       printcap name = /etc/printcap
231         #obtain list of printers automatically on SystemV
232 ;       printcap name = lpstat
233 ;       printing = cups
234
235 # --------------------------- Filesystem Options ---------------------------
236 #
237 # The following options can be uncommented if the filesystem supports
238 # Extended Attributes and they are enabled (usually by the mount option
239 # user_xattr). Thess options will let the admin store the DOS attributes
240 # in an EA and make samba not mess with the permission bits.
241 #
242 # Note: these options can also be set just per share, setting them in global
243 # makes them the default for all shares
244
245 ;       map archive = no
246 ;       map hidden = no
247 ;       map read only = no
248 ;       map system = no
249 ;       store dos attributes = yes
250
251
252 #============================ Share Definitions ==============================
253
254 #[homes]
255 #       comment = Home Directories
256 #       browseable = no
257 #       writable = yes
258 ;       valid users = %S
259 ;       valid users = MYDOMAIN\%S
260
261 #[printers]
262 #       comment = All Printers
263 #       path = /var/spool/samba
264 #       browseable = no
265 #       guest ok = no
266 #       writable = no
267 #       printable = yes
                                            # Un-comment the following and create the netlogon directory for Domain Logons
270 ;       [netlogon]
271 ;       comment = Network Logon Service
272 ;       path = /var/lib/samba/netlogon
273 ;       guest ok = yes
274 ;       writable = no
275 ;       share modes = no
276
277
278 # Un-comment the following to provide a specific roving profile share
279 # the default is to use the user's home directory
280 ;       [Profiles]
281 ;       path = /var/lib/samba/profiles
282 ;       browseable = no
283 ;       guest ok = yes
284
285
286 # A publicly accessible directory, but read only, except for people in
287 # the "staff" group
288         [public]
289         comment = Public Stuff
290         path = /home/share
291         public = yes
292         writable = yes
293         printable = no
294         write list = +staff
295         valid

阅读(521) | 评论(0) | 转发(0) |
0

上一篇:自用vsftp配置

下一篇:自用vimrc配置

给主人留下些什么吧!~~