構建samba檔案伺服器 環境:fedora 12 i386 伺服器IP:192.168.3.202 1使用yum網路安裝的方式安裝軟體包 root@ns1 ~]# ping www.baidu.comPING www.a.shifen.com (61.135.169.125) 56(84) bytes of data.64 bytes from 61.135.169.125: icmp_seq=1 ttl=57 time=17.2 ms64 bytes from 61.135.169.125: icmp_seq=2 ttl=57 time=54.7 ms64 bytes from 61.135.169.125: icmp_seq=3 ttl=57 time=19.2 ms 安裝 [root@ns1 ~]# yum install samba已載入外掛程式:presto, refresh-packagekit設定安裝進程解決依賴關係--> 執行事務檢查---> 軟體包 samba.i686 0:3.4.9-60.fc12 將被 安裝--> 完成依賴關係計算 依賴關係解決 ==================================================== 軟體包 架構 版本 倉庫 大小====================================================正在安裝: samba i686 3.4.9-60.fc12 updates 4.3 M 事務概要=====================================================Install 1 Package(s) 總下載量:4.3 MInstalled size: 14 M確定嗎?[y/N]:y下載軟體包:Setting up and reading Presto delta metadataProcessing delta metadataPackage(s) data still to download: 4.3 Msamba-3.4.9-60.fc12.i686.rpm | 4.3 MB 02:33 運行 rpm_check_debug 執行事務測試事務測試成功執行事務 正在安裝 : samba-3.4.9-60.fc12.i686 1/1 已安裝: samba.i686 0:3.4.9-60.fc12 完畢! 2配置samba伺服器的設定檔 [root@ns1 ~]# vim /etc/samba/smb.conf [global] workgroup = ceshizu //顯示伺服器工作群組 security = share //伺服器安全層級share(所有,不許要驗證) [share] //本地目錄在網路中的共用名稱 comment = ceshimulu //註解 path = /var/public/ceshi //伺服器本地路徑 public = yes //在網路位置中是否可見 writable = yes //能否建立修改檔案 3測試通過,(任意使用者都能查看到共用目錄但是不能刪除,不能建立,) (根據需要調整許可權)