samba共享linux目录
1.修改Apache的配置文件
User apache
Group apache
修改后重启apache
命令:systemctl restart httpd
2.apache 授权
在apache服务的根目录的上一层 (我的为 /var/www/html)
命令 setfacl -m u:apache:rwx -R html/ setfacl -m d:u:apache:rwx -R html/ (关键)
3.安装samba服务器 命令 yum install samba*
4.设置配置文件
[web]
comment = soft for file
path = /var/www/html
browseable = yes
writable = yes
5.增加samba用户 smbpasswd -a apache 两次输入密码 ok
6.启动samba服务器 systemctl start smb systemctl enable smb