centos 7安裝samba服務器
1.關閉防火牆,systemctl stop firewalld.service 和setenforce 0
2.配置smb.conf ,vim /etc/samba/smb.conf
smb.conf 配置內容
[global]
netbios name =
cmcc1
server string = Linux Samba Server TestServer
security =
user #在samba4中 share 和 server已經被禁用
map to guest =Bad User
[cmcc]
path = /opt/cmcc
writeable = yes
browseable = yes
guest ok= yes
3.啓動samba服務, systemctl start samba.service注意:在samba4中 share 和 server已經被禁用,需要用 security = user 和map to guest =Bad User來實現無密碼訪問目錄