- 论坛徽章:
- 0
|
主要设置是这样的
[global]
workgroup = Workgroup
server string = Samba Server Version %v
netbios name = SAMBA SERVER
display charset = cp936
unix charset = cp936
dos charset = cp936
interfaces = lo eth0
; hosts allow = 127. 192.168.12. 192.168.13.
.
.
.<=====省略
.
.
# ----------------------- Standalone Server Options ------------------------
#
# Security can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.
# security = share
# passdb backend = tdbsam
security = user
encrypt passwords=yes
smb passwd file=/etc/samba/smbpasswd.conf
.
.
. <=====省略
.
[software]
path=/home/software
read only=yes
#public=yes
#valid users=
#writable=yes
[qa share]
comment = QA department
path = /home/qa
valid users=qa
#public = yes
#read only=no
writable = yes
#create mode=0664
#directory mode=0777
. |
|