|
第一次配置samba,什么都不懂,按照linuxfans的方法依样画葫芦弄了一下,还望热心人给我看看,随便指点指点,谢谢:)还想问一下哪有配置webmin的相关文章?
#======================= Global Settings =====================================
[global]
workgroup =MSHOME
create mask = 0755
directory mask = 0755
client code page = 936
name resolve order = host wins bcast lmhosts
local master = yes
domain master = yes
preferred master = yes
domain logons = yes
; logon script = %m.bat
; logon script = %U.bat
announce version = 5.0
announce as = Windows NT Enterprise Edition 5.0
log file = /var/log/samba/log.%m
max log size = 50
; interfaces = 192.168.20.8/24 211.148.130.133/28
deadtime = 5
hosts allow = 127.0.0. 192.168.20. 192.168.30. 211.148.130.128/255.255.255.240
hosts deny = all
veto files = /*.eml/*.nws/riched20.dll/*.bat/*.scr/*.pif/
dont descend = /proc, /dev
dos filetime resolution = True
; preexec = csh -c echo \"Welcome to %S!\" | smbclient -M %m -I %I &
printcap name = /etc/printcap
load printers = yes
printing = lprng
max log size = 0
security = share
; null passwords = yes
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
; obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
wins support = yes
; wins proxy = yes
dns proxy = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
create mode = 0775
directory mode = 0775
[printers]
comment = All Printers
path = /var/spool/samba
create mask = 0700
guest ok = Yes
printable = Yes
print command = lpr-cups -P %p -o raw %s -r # using client side printer drivers.
browseable = No
print$]
path = /var/lib/samba/printers
write list = @adm root
[share]
path = /mnt/windows
read only = No
guest ok = Yes |
|