欧卡2中文社区

 找回密码
 立即注册

QQ登录

只需一步,快速开始

需要三步,才能开始

只需两步,慢速开始

欧卡2入门方向盘选莱仕达V9莱仕达折叠便携游戏方向盘支架欢迎地图Mod入驻
查看: 6953|回复: 1
收起左侧

[开源] samba配置

[复制链接]
oppo 发表于 2017-3-24 15:58 | 显示全部楼层 |阅读模式
[global]
        # 控制连接数量,超过之后新连接将被拒绝
        max connections = 0
        workgroup = MYGROUP
        server string = Samba Server Version %v
        
;        interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24 
;        hosts allow = 127. 192.168.12. 192.168.13.
        
        # logs split per machine
        log file = /var/log/samba/log.%m
        # max 50KB per log file, then rotate
        max log size = 50

        security = user
        passdb backend = tdbsam
        guest ok = no

        load printers = no
        cups options = raw

        #用来设置服务器和客户端之间会话的Socket选项,可以优化传输速度。(实测不加这个还更快一些。。。)
;        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
;        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
        

        # Some other performace tuning options
        # disable links and symbol links
    follow symlinks = no
    wide links = no
        # enable some read/write tuning
    use sendfile = yes
    read raw = yes
    write raw = yes
    aio read size = 16384
    aio write size = 16384
    write cache size = 262144
    max xmit = 65536
    large readwrite = yes
    getwd cache = yes
        # disable locking, because only 2 share can be written.
    strict locking = no
    fake oplocks = yes
    oplocks = no

[homes]
        comment = Home Directories
        path = /home/dev
        # 是否显示目录
        browseable = no
        writable = yes
;        read only = yes
        create mode = 0664
        directory mode = 0775
        guest ok = no
;        valid users = %S
;        valid users = MYDOMAIN\%S

[www]
        comment = HTTP
        path = /home/wwwroot
        hosts allow = 127.
        guest ok = no
        browseable = no
        read only = yes
        
[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        guest ok = no
        writable = no
        printable = yes
        
;        [netlogon]
;        comment = Network Logon Service
;        path = /var/lib/samba/netlogon
;        guest ok = yes
;        writable = no
;        share modes = no
        
        
;        [Profiles]
;        path = /var/lib/samba/profiles
;        browseable = no
;        guest ok = yes
        
        
;        [public]
;        comment = Public Stuff
;        path = /home/samba
;        public = yes
;        writable = yes
;        printable = no
;        write list = +staff
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系我们|手机版|欧卡2中国 ( 湘ICP备11020288号-1 )

GMT+8, 2024-4-19 12:25 , Processed in 0.043797 second(s), 11 queries , Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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