配置smb映射Linux文件

配置CentOS7 映射文件到本地windows

新建
$ yum -y install samba
添加系統用戶
$ useradd username
配置smb
$ vim /etc/samba/smb.conf

添加一下內容

[username]
        comment = username
        path = /data/wwwroot
        writable = yes

添加smb用戶
$ smbpasswd -a username
重啓
$ service smb restart

TIPS

確保關閉防火牆和sexLinux

windows 添加映射

計算機右鍵->添加網絡驅動器映射:\\127.0.0.xx\username

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章