建立和Windows 溝通的橋樑 - Samba (Share)
-updated at 080916
因為我只是自己用,所以我決定不設置密碼,這是非常之不安全,不過在方便和安全中,大家要衡量一下。
而config 中,最重要的是設立charset,讓samba 和ftp 可以互相建立中文檔案。
vi /etc/samba/smb.conf
因為我只是自己用,所以我決定不設置密碼,這是非常之不安全,不過在方便和安全中,大家要衡量一下。
而config 中,最重要的是設立charset,讓samba 和ftp 可以互相建立中文檔案。
apt-get install samba
vi /etc/samba/smb.conf
[global]
workgroup = my.lan
server string = %h server (Samba %v)
dns proxy = no
unix charset = cp950
dos charset = cp950
hosts allow = 192.168.10. 127. 10.0.
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 guest
obey pam restrictions = yes
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
socket options = TCP_NODELAY
[www]
comment = www
browseable = yes
path = /home/www
public = yes
writable = yes
create mode = 0744
force user = www-data
force group = www-data
[linuxstuff]
comment = Stuff for Linux
browseable = yes
path = /home/common/prog
public = yes
writable = yes
create mode = 0600
force user = user1
force group = group1
Comments