1.执行 vi /etc/samba/smb.conf
2.将下面这句话加在最后:
[test]
comment = test's test folderr
path = /usr1/code
public = yes
writeable = yes
printable = no
create mask = 0765
3.执行service smb restart
最后一定要对路径附一下777权限就好了
chmod -R 777 ./
来源:CSDN
作者:何博士
链接:https://blog.csdn.net/h505722924/article/details/104804211