|
下面是我整理的SMB的配置文件,请高手帮忙修改一下,屏蔽掉不常用的选项,谢谢~~
[global]
workgroup = MYGROUP
server string = Samba Server
security = user
hosts allow = 192.168.1. 192.168.2. 127.
load printers = yes
printcap name = /etc/printcap
printcap name = lpstat
printing = cups
guest account = pcguest
log file = /var/log/samba/log.%m
max log size = 50
password server = *
password server = <NT-Server-Name>
realm = MY_REALM
passdb backend = tdbsam
include = /usr/local/samba/lib/smb.conf.%m
socket options = TCP_NODELAY
interfaces = 192.168.12.2/24 192.168.13.2/24
local master = no
os level = 33
domain master = yes
preferred master = yes
domain logons = yes
logon script = %m.bat
logon script = %U.bat
logon path = \\%L\Profiles\%U
wins support = yes
wins server = w.x.y.z
wins proxy = yes
dns proxy = no
add user script = /usr/sbin/useradd %u
add group script = /usr/sbin/groupadd %g
add machine script = /usr/sbin/adduser -n -g machines -c Machine -d /dev/null -s /bin/false %u
delete user script = /usr/sbin/userdel %u
delete user from group script = /usr/sbin/deluser %u %g
delete group script = /usr/sbin/groupdel %g
#============================ Share Definitions ==============================
[myshare]
comment = Mary's and Fred's stuff
path = /home/ftp
valid users = mary fred
public = yes
writable = yes
printable = yes
create mask = 0765 |
|