安裝並配置samba

1.安裝:
       yum install samba
2.添加samba服務器登陸用戶密碼
     smbpasswd -a win
3.配置samba服務
     vim /etc/samba/smb.conf
    添加如下:
    security = share
   [root]
             comment = Root Directories
             Path = /
             browseable = yes
             writeable = yes
             valid users = win
4.重啓網絡
         service network restart
5.關閉linux防火牆
     臨時關閉:service iptables stop
     永久關閉:chkconfig iptables off
6.關閉內核防火牆
    臨時關閉:setenforse  0
    永久關閉:vim /etc/sysconfig/selinux  或  vim /etc/selinux/config 
                     將SELINUX = enforcing
                  改爲
                   SELINUX = disabled
7.重啓samba
         service smb restart
        開機啓動smb:chkconfig --level 35 smb on
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章