您好,登錄后才能下訂單哦!
經常有學員詢問如何將centos\ubuntu目錄映射到windows中以方便開發工作,因此寫這個指導博客方便大家配置開發環境。
# yum install samba samba-clinet -y
#cd /etc/samba/
#mv smb.conf smb.conf.bak
#vi smb.conf
內容如下
[global]
workgroup = SAMBA
netbios name = 172.16.100.1
server string = samba server
log file = /var/log/samba/log%m
max log size = 50
security = user
map to guest = Bad User
[share]
comment = sharee source
path = /share
writable = yes
browseable = yes
guest ok = yes
# mkdir /share
# chmod 777 /share
# touch /share/test.file
# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
# setenforce 0
# systemctl stop firewalld
# systemctl disable firewalld
# systemctl restart smb nmb
# systemctl enable smb nmb
結果
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。