找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 913|回复: 3

samba设置求助

[复制链接]
悬赏1恩山币未解决
本帖最后由 s807180544 于 2020-5-9 12:27 编辑

搞了好久出现文件重复乱码,搜遍了百度和论坛,我无能为力,只好求助大佬
贴上 配置[global]
         netbios name = |NAME|
        display charset = |CHARSET|
        interfaces = |INTERFACES|
        server string = |DESCRIPTION|
        unix charset = utf-8
        workgroup = |WORKGROUP|
        browseable = yes
        deadtime = 30
        domain master = yes
        encrypt passwords = true
        enable core files = no
        guest account = nobody
        guest ok = yes
        invalid users = root
        local master = yes
        load printers = no
        map to guest = Bad User
        max protocol = SMB2
        min receivefile size = 16384
        null passwords = yes
        obey pam restrictions = yes
        os level = 20
        passdb backend = smbpasswd
        preferred master = yes
        printable = no
        security = user
        smb encrypt = disabled
        smb passwd file = /etc/samba/smbpasswd
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        syslog = 2
        use sendfile = yes
        writeable = yes

附件: 您需要 登录 才可以下载或查看,没有账号?立即注册
我的恩山、我的无线 The best wifi forum is right here.
中文乱码是不是跟“unix charset = utf-8”有关系。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

[global]
        netbios name = |NAME|
        display charset = |CHARSET|
        interfaces = |INTERFACES|
        server string = |DESCRIPTION|
        unix charset = |CHARSET|
        workgroup = |WORKGROUP|
        browseable = yes
        deadtime = 30
        domain master = |MASTER|
        encrypt passwords = true
        enable core files = no
#        guest account = nobody
        guest account = root
        guest ok = yes
#        invalid users = root
        local master = yes
        load printers = no
        map to guest = Bad User
        max protocol = SMB2
        null passwords = yes
        obey pam restrictions = yes
        os level = 250
        lm announce = yes
        lm interval = 10
        dns proxy = no
        passdb backend = smbpasswd
        preferred master = yes
        printable = no
        security = user
        smb encrypt = disabled
        smb passwd file = /etc/samba/smbpasswd
        syslog = 2
        use sendfile = yes
        writeable = yes
        read raw = yes
        write raw = yes
        getwd cache = Yes
        min receivefile size = 16384
#        write cache size = 65536
        large readwrite = yes
        fake oplocks = yes
        oplocks = no
        strict locking = no
        posix locking = no
        kernel oplocks = no
#        disable spoolss = yes
#        host msdfs = no
#        strict allocate = no
        use mmap = yes
        skip ftruncate = yes
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

来自手机 | 显示全部楼层
本帖最后由 鸭鸭走 于 2020-5-9 22:24 编辑

ssh输入locale,如果locale显示结果是zh_CN.UTF-8,做如下设置:display charset = utf8
unix charset = utf8
dos charset = utf8
如果locale是zh_CN.GBK或zh_CN.gb2312,做如下设置:
display charset = cp936
unix charset = cp936
dos charset = cp936
然后重启smb
原文在这里
https://www.centos.bz/2018/11/sa ... %E8%A7%A3%E5%86%B3/
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-27 17:31

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表