• centos7.6+samba+设置可读可写不可删权限


    samba原文

    https://www.cnblogs.com/muscleape/p/6385583.html

    设置可读可写不可删权限原文:

    https://blog.51cto.com/guanhaizhan/2090396

    mkdir -m 777 /share

    [public]
    path = /share
    writable = yes
    create mask = 1444
    directory mask = 1777

    需求要求可读可写不可删:

    1、关闭防火墙

    2、关闭SeLinux

    3、yum install samba

    service smb status

    systemctl status smb

    systemctl start smb

    设置smb开机启动

    systemctl enable smb

    Samba的主配置文件为/etc/samba/smb.conf

    请注意,配置文件前面必须用空格,不可以用tab键

    #======================= 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
    
            workgroup = WORKGROUP
            server string = LBALY Samba Server Version %v
            netbios name = LBALYSamba
            interfaces = eth0
            max connections = 0
            deadtime = 0
    
    # --------------------------- Logging Options -----------------------------
    #
    # Log File let you specify where to put logs and how to split them up.
    
            log file = /var/log/samba/log.%m
            max log size = 50
    # ----------------------- Standalone Server Options ------------------------
    #
    # Scurity can be set to user, share(deprecated) or server(deprecated)
    
            security = user
            map to guest = Bad User
    
    #============================ Share Definitions ==============================
    
    [public]
            comment = Public Stuff
            path = /share
            public = yes
            writable = yes
            create mask = 1444
            directory mask = 1777
  • 相关阅读:
    分布式任务框架elastic-job 学习笔记
    spring 基础知识复习
    Spring MVC 搭建
    python引入自定义模块
    python操作Excel读写--使用xlrd
    selenium2.0关于python的常用函数
    从零开始学Python07作业源码:虚拟人生(仅供参考)
    通过System.getProperties()获取系统参数
    Android Studio启动后出现cannot bind to 127.0.0.1:5037 10048的解决办法
    开发环境入门 linux基础 (部分)awk 赋值变量 if
  • 原文地址:https://www.cnblogs.com/itfat/p/10531917.html
Copyright © 2020-2023  润新知