本文共 525 字,大约阅读时间需要 1 分钟。
- [global]
- workgroup = WORKGROUP
- server string = Samba Server %v
- netbios name = centos
- security = user
- map to guest = bad user
- dns proxy = no
-
- [Anonymous]
- path = /samba/anonymous
- browsable =yes
- writable = yes
- guest ok = yes
- read only = no
- 以上是/etc/samba/smb.conf
- 设置共享目录的权限
- cd /
- mkdir samba/anonymous
- cd /samba/
- [root@localhost samba]# chmod -R 0755 anonymous/
- [root@localhost samba]# chown -R nobody:nobody anonymous/
- [root@localhost samba]# chcon -t samba_share_t anonymous/
转载于:https://www.cnblogs.com/liqing1009/p/7591669.html