apt-get install samba
編輯/etc/samba/smb.conf
[global]
workgroup = WORKGROUP
display charset = UTF8
dos charset= cp950
unix charset= UTF8
server string = server description
dns proxy = no
; name resolve order = lmhosts host wins bcast
; interfaces = 127.0.0.0/8 eth0
; bind interfaces only = yes
#### Debugging/Accounting ####
log file = /var/log/samba/log.%m
max log size = 1000
syslog = 0
panic action = /usr/share/samba/panic-action %d
security = share
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
#======================= Share Definitions =======================
read only = yes
create mask = 0700
directory mask = 0700
vaild users = %s
[250g1]
comment = 250g1
path = /250g1
guest ok = yes
writable = yes
share modes = yes
[250g2]
comment = 250g2
path = /250g2
guest ok = yes
writable = yes
share modes = yes
沒有留言:
張貼留言