Switch language
zh
Switch theme
Light
  • linux 设置 smb

    install sudo apt update sudo apt install samba set share folder # /etc/samba/smb.conf # append below lines [smb_share] path = /data/smb_share comment = parent folder write list = @sambashare valid users = @sambashare writeable = yes # 最终 /etc/samba/smb.conf 设置 ... [smb_share] path = /data/smb_share comment = parent folder write list = @sambashare valid users = @sambashare writeable = yes root preexec = /etc/samba/check_user_connection.sh %u %I %S root preexec close = yes inherit permissions = yes nt acl support = no store dos attributes = no map archive = no hide unreadable = yes ; 这里 inherit permissions 表示新增加的文件(夹) rwx 继承父文件夹, 从而让 用户A 新增的文件(夹), 用户B也有 rw 权限; nt acl support, store dos attributes, map archive 设置表示禁止映射到 windows 后, 用 office(或wps等) 编辑保存的文件自动添加了 +(扩展权限 acl)权限.
🍀