zoukankan      html  css  js  c++  java
  • cetos6 安装samba共享文件夹

    yum方式安装

    yum install samba
    

    修改配置文件

    vim /etc/samba/smb.conf
    [global]
            comment = global
            workgroup = QFpay
            server string = Samba Server Version %v
            log level = 10
            log file = /var/log/samba/log.%m
            max log size = 50
            security = user
            smb passwd file = /etc/samba/smbpasswd
            passdb backend = smbpasswd
            load printers = yes
            cups options = raw
            map to guest = bad user
    
    
    [public]
            comment = read only public
            path = /home/samba/public
    #       only guest = Yes
    #       read only = Yes
            writable = Yes
            browseable=yes
            guest ok =Yes
            public = Yes
            create mode = 0777
            directory mode = 0777
        vfs object = recycle
                recycle:noversions = *.doc
                recycle:exclude = *.mp3 | *.tmp
                recycle:maxsize = 0
                recycle:repository = /home/recycle/%U
                recycle:keeptree = yes
                recycle:versions = yes
    

    增加用户,设置密码

    smbpasswd -a 用户名
    

    重启samba

    /etc/init.d/smb restart
    

    使用

    //ip地址
    

    输入用户名密码登陆即可

    赵客缦胡缨,吴钩霜雪明。 银鞍照白马,飒沓如流星。
  • 相关阅读:
    函数的进阶
    几个基础 类型循环删除
    函数的初识
    python3的 基础
    python3 最基础
    demo
    [转] ajax方法
    <codis><jodis>
    <Redis Advance><Pipelining><Memory Optimization><Expire><Transactions>
    <HBase><Scan>
  • 原文地址:https://www.cnblogs.com/boy215/p/6274782.html
Copyright © 2011-2022 走看看