zoukankan      html  css  js  c++  java
  • S-a-m-b-a服务器配置文件

    /etc/samba/smb.conf备份,如果想访问记得加\IP

    # See smb.conf.example for a more detailed config file or
    # read the smb.conf manpage.
    # Run 'testparm' to verify the config is correct after
    # you modified it.
    
    [global]
            workgroup = SAMBA
            security = user
    
            passdb backend = tdbsam
    
            printing = cups
            printcap name = cups
            load printers = yes
            cups options = raw
    
    [homes]
            comment = Home Directories
            valid users = yuan
            browseable = No
            read only = No
            inheritacls = Yes
    
    [printers]
            comment = All Printers
            path = /var/tmp
            printable = Yes
            create mask = 0600
            browseable = Yes
    
    [print$]
            comment = Printer Drivers
            path = /var/lib/samba/drivers
            write list = root
            create mask = 0664
            directory mask = 0775
    [common]
            comment =Common share
            path = /home/samba
            browseable = yes
            guest ok = no
            writable = yes
    [time]
            comment = Ashes of Time
            path = /home/yuan/myshare
            valid users = yuan
            write list = yuan
            printable = no 
            create mask = 0775
            directory mask = 0775
            comment = Printer Drivers
            path = /var/lib/samba/drivers
            write list = @printadmin root
            force group = @printadmin
            create mask = 0664
            directory mask = 0775

    在网络输入\ip,然后可以看到如下三个共享文件夹:

  • 相关阅读:
    强弱类型 静态语言 动态语言 || 脚本语言
    mysql版本升级问题处理
    word
    IntelliJ IDEA 插件
    dubbo
    spring源码构建
    zookeeper 本地多线程模拟分布式事务控制及配置中心
    一次性关闭所有的Activity
    可能以后用得到得东西
    Thread.sleep还是TimeUnit.SECONDS.sleep
  • 原文地址:https://www.cnblogs.com/timingstarts/p/12833011.html
Copyright © 2011-2022 走看看