赞
踩
-
- [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/
- 配置防火墙:
- 修改/etc/firewalld/zones/public.xml文件,在zone一节中增加:
- <zone>
- ...
- <service name="samba"/>
- <zone>
- sudo systemctl reload firewalld
- 启动samba:systemctl start smb.service
- 设置开机启动:sudo systemctl enable nginx.service

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。