centos7配置smb(親測可行)
http://www.centoscn.com/CentosServer/ftp/2015/0722/5896.html
-
初步說明
net config workstation
|
notepad C:\Windows\System32\drivers\etc\hosts
|
[...]
192.168.0.100
server1.example.com centos |
-
Samba匿名共享
yum install samba samba-client samba-common
|
1 |
mv /etc/samba/smb .conf /etc/samba/smb .conf.bak
|
vi /etc/samba/smb .conf
[global]
workgroup = WORKGROUP
server string = Samba Server % v
netbios name = centos
security = user
map to guest = bad user
dns proxy = no
#============================ Share Definitions ==============================
[Anonymous]
path = /samba/anonymous
browsable = yes
writable = yes
guest ok = yes
read only = no
:wq #儲存並退出
|
mkdir -p /samba/anonymous
systemctl enable smb.service
systemctl enable nmb.service
systemctl restart smb.service
systemctl restart nmb.service
|
[[email protected] ~] # firewall-cmd --permanent --zone=public --add-service=samba
success
[[email protected] ~]
|