|
发表于 2003-9-13 00:02:38
|
显示全部楼层
如果用的是unstable, 那么用apt-get安装的samba确实不好用,大概是因为版本太新的缘故, 发送的控制台信息的中文显示不出来, 加了client code page就会有出错提示. 后来我自己下载了2.2.8的DEB包安装的, 一切正常, 可以在smb.conf中使用client code page这个参数.
附我的smb.conf
----------------------------------------------------
[global]
netbios name = aquino
workgroup = fem
server string = %h server (Samba %v)
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
obey pam restrictions = yes
dns proxy = no
guest account = nobody
invalid users = root
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spassword:* %n\n .
message command = cat %s | mail root -s "Console-Message From %f ";rm %s
client code page = 936
character set = 936
[share]
path = /var/share
read only = yes
guest ok = yes
------------------------------------------------ |
|