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)权限.
Recent Posts
Tags
- apache 4
- axios 1
- benchmark 1
- binlog 1
- c 1
- canvas 1
- centos 3
- channel 1
- crontab 1
- css 2
- docker 4
- fail2ban 1
- frp 1
- gin 1
- github 1
- go 26
- goaccess 1
- goroutine 1
- http 1
- https 1
- jetbrains 1
- jquery 1
- js 2
- linux 21
- mermaid 1
- mysql 11
- nginx 3
- node 1
- php 43
- prisma 1
- react 8
- server 1
- smb 1
- ssh 2
- tarojs 1
- tcp/ip 1
- token 1
- ubuntu 1
- ufw 1
- unit-test 1
- ventoy 1
- vmware 2
- vscode 1
- vue 12
- yum 1
- 域名 3
- 安全 2
- 微信 3
- 算法 3