• samba基本配置


    安装启动不用说了

    vim /etc/samba/smb.conf

    workgroup = WORKGROUP

    server string = Samba Server %v
    netbios name = samba.***.com

    security = user
    encrypt passwords = true
    map to guest = bad user
    guest account = nobody

    log file = /var/log/samba/%m.log
    max log size = 50

    load printers = yes
    cups options = raw
    dns proxy = no

    unix charset = UTF-8
    dos charset = CP936

    [printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    guest ok = no
    writable = no
    printable = yes

    [doc]
    comment = doc
    path = /data/samba/doc
    valid users = doc
    browsable =yes
    writable = yes
    guest ok = yes
    read only = no
    create mask = 0777
    security mask = 0777
    directory mask = 0777
    force create mode = 0777
    directory security mask = 0777

    上面是基本配置

    要创建用户

    groupadd -g 1003 doc

    useradd -u 1003 -g 1003 doc

    配置密码:

    smbpasswd -a doc

    设置密码

  • 相关阅读:
    celery的使用
    DOM操作
    js动画
    列表案例
    背景案例
    背景属性连写
    背景属性
    链接导航案例
    链接伪类
    优先权之权重会叠加
  • 原文地址:https://www.cnblogs.com/mikeluwen/p/7009955.html
Copyright © 2020-2023  润新知