- 论坛徽章:
- 0
|
系统:SUSE Linux enterprise 11
服务:samba
做好samba服务后,将本地机器的文件夹通过SSH传输到服务器 ,在服务器和SSH中看都是显示中文。但是在windows下登录samba服务器后显示的确是乱码。
同样,如果通过windows下访问samba服务器 ,并创建一个中文目录。在服务器和SSH中查看也会变成乱码 请高手指点。
下面我贴出我的SMB.CONF文件- linux-ue5l:~ # vi /etc/samba/smb.conf
- # smb.conf is the main Samba configuration file. You find a full commented
- # version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
- # samba-doc package is installed.
- # Date: 2009-02-23
- [global]
- workgroup = WORKGROUP
- printing = cups
- printcap name = cups
- printcap cache time = 750
- cups options = raw
- map to guest = Bad User
- include = /etc/samba/dhcp.conf
- logon path = \\%L\profiles\.msprofile
- logon home = \\%L\%U\.9xprofile
- logon drive = P:
- usershare allow guests = Yes
- add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
- domain logons = No
- domain master = No
- security = user
- passdb backend = smbpasswd
- wins support = No
- [homes]
- comment = Home Directories
- valid users = %S, %D%w%S
- browseable = No
- read only = No
- inherit acls = Yes
- ## Share disabled by YaST
- # [netlogon]
- [item]
- comment = item
- inherit acls = Yes
- path = /file/item/
- read only = No
- [public]
- comment = public
- inherit acls = Yes
- path = /file/public/
- read only = No
- iocharset=utf8
- codepage=gb2312
复制代码 |
|