zoukankan      html  css  js  c++  java
  • 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

    设置密码

  • 相关阅读:
    python locust 性能测试:locust安装和一些参数介绍
    输入一串字符,检查是否可以组成friend
    Django基础
    JQuery基础
    Javascript基础
    CSS基础
    HTML基础
    MYSQL数据库
    I/O模型
    协程-----Coroutine
  • 原文地址:https://www.cnblogs.com/mikeluwen/p/7009955.html
Copyright © 2011-2022 走看看