Page tree

如果您使用的是 SMB 文件共享协议,请使用该示例在 UNIX 服务器上配置共享。
您可以在单个物理卷上设置一个或多个共享,这与使用 Windows 操作系统的印能捷服务器上的文件夹结构不同。
该示例是来自 Samba 3 的 smb.conf 文件。有关每个配置参数的详细信息,请参阅 http://www.samba.org 中的 Samba 文档。

注意:

  • 请勿修改以粗体显示的参数。必须正确设置这些参数印能捷才能正常工作。可以修改其他设置或添加其他设置,但这样做有风险。
  • NetBIOS 名称必须全部为大写。
  • 如果您发现性能缓慢,更改协议可能会提高性能。按照如下所示更改三个协议行。

# Samba config file created using SWAT
# from 10.1.66.51 (10.1.66.51)
# Date: 2004/05/04 08:55:15
# Global parameters
[global]
workgroup = MYWORKGROUP
netbios name = CREOLINUX
server string = %h server (Samba %v)
encrypt passwords = Yes
update encrypted = Yes
map to guest = Bad User
obey pam restrictions = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX
\spassword:* %n\n.
syslog = 0
log file = /var/log/samba/log.%m
max log size = 50
protocol = LANMAN2
max protocol = LANMAN2
min protocol = LANMAN2
time server = Yes
UNIX extensions = Yes
mangling method = hash2
preferred master = No
local master = No
domain master = No
browse list = No
enhanced browsing = No
dns proxy = No
invalid users = root
create mask = 0777
case sensitive = No
# Example shared volumes. Prinergy requires the
# AraxiVolume_xxx naming format to use the # shared
# volume as a job share.
[AraxiVolume_P3Linux_18gb]
comment = 18GB Volume on P3Linux
path = /18gb
read only = No
[AraxiVolume_P3Linux_36gb]
comment = 36GB Volume on P3Linux
path = /36gb
read only = No

  • No labels