• Samba服务器搭建


    作为服务器的机器IP:192.168.124.129  主机名:Centos 操作系统:CentOS 5.5

     

    1、  软件安装

    yum –y install samba*

    2、  配置

    #======================= Global Settings =====================================

     

    [global]

     

    # ----------------------- Network Related Options -------------------------

    #

    # workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH

    #

    # server string is the equivalent of the NT Description field

    #

    # netbios name can be used to specify a server name not tied to the hostname

    #

    # Interfaces lets you configure Samba to use multiple interfaces

    # If you have multiple network interfaces then you can list the ones

    # you want to listen on (never omit localhost)

    #

    # Hosts Allow/Hosts Deny lets you restrict who can connect, and you can

    # specifiy it as a per share option as well

    #

            workgroup = WORKGROUP

            server string = Samba Server Version %v

        log file = /var/log/samba/%m.log

           max log size = 50

     

    # ----------------------- Standalone Server Options ------------------------

            security = user

     

     

    #[homes]

    ;       comment = Home Directories

    ;       browseable = no

    ;       writable = yes

    ;       valid users = %S

    ;       valid users = MYDOMAIN\%S

     

    [www]

            comment = webroot

            path = /var/www

            writable = yes

            browseable yes

            valid users = apache

    文件件权限设置:

    [root@localhost var]# setfacl -m u:apache:rwx www/

    [root@localhost var]# setfacl -m d:u:apache:rwx www/

     

    3、  设置开机自启动

    Chkconfig smb on

    4、  测试

    Linux里边访问windows共享的资源

  • 相关阅读:
    .NET视频学习总结
    hdu5288(2015多校1)OO’s Sequence
    【Go web开发之revel+mgo】第1章 述与环境
    Android获得当前系统时间、星期几、周几
    夯实Java:从面向对象说起
    centos7 安装nginx
    centos7 安装nginx
    centos7 安装nginx
    element-ui中cascader同时获取label和value值
    element-ui中cascader同时获取label和value值
  • 原文地址:https://www.cnblogs.com/jamesbd/p/3567619.html
Copyright © 2020-2023  润新知