建構samba檔案伺服器
環境:fedora 12 i386
伺服器IP:192.168.3.202
1使用yum網絡安裝的方式安裝軟體包
root@ns1 ~]# ping www.baidu.com
PING 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 ms
64 bytes from 61.135.169.125: icmp_seq=2 ttl=57 time=54.7 ms
64 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 M
Installed size: 14 M
确定嗎?[y/N]:y
下載下傳軟體包:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 4.3 M
samba-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測試通過,(任意使用者都能檢視到共享目錄但是不能删除,不能建立,)
(根據需要調整權限)