smb.conf

Samba官网高对比度配色看的实在辣眼睛,挖个坑翻译一下smb的config示例文档。

#

Debian GNU/linux平台下Samba组件的配置示例

#

这是Samba的主要配置文件。你应当阅读smb.conf(5)说明页面,以能够理解本文中的选项。Samba有非常多可配置选项,且大部分未在此列出。

 

# 本文囊括了一些有必要经常调整的选项

#  一些被“;”标出的选项,用于区别默认选项

#  用“#”标注的选项,是被认为重要、且默认执行的选项

#

# 注意:在任何时候修改此文件,你都应当运行“testparm”命令,以确认你没有造成语法错误

 

#======================= 全局设置=======================

 

[global]

 

## 浏览、认证 ###

# 将此项修改为你的Samba服务器所在的工作组、域服务

   workgroup = WORKGROUP

# 服务器名和域描述区域相同server string is the equivalent of the NT Description field

   server string = %h server (Samba, Ubuntu)

 

# Windows 网络名服务支持部分:

# WINS 支持 - 告知Samba的NMBD组件使其支持Windows服务器

#   wins support = no

 

# WINS Server - Tells the NMBD components of Samba to be a WINS Client

# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both

;   wins server = w.x.y.z

 

# 这项会阻止nmbd通过DNS搜索NetBIOS名

   dns proxy = no

 

#### 网络 ####

 

# 用来绑定特定接口、网络的指定设置

# 此项课用于接口名或IP地址、掩码;

# 通常使用接口名

;   interfaces = 127.0.0.0/8 eth0

 

# Only bind to the named interfaces and/or networks; you must use the

# 'interfaces' option above to use this.

# It is recommended that you enable this feature if your Samba machine is

# not protected by a firewall or is a firewall itself.  However, this

# option cannot handle dynamic or non-broadcast interfaces correctly.

;   bind interfaces only = yes



 

#### 调试、统计 ####

 

# 此项会告知Samba给每台连接的设备使用独立的日志文件来记录。

   log file = /var/log/samba/log.%m

 

# 限制每个独立日志文件的大小(in KiB).

   max log size = 1000

 

# 如果你想让Samb

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值