實驗3Samaba服務
實驗環境
在虛擬機Linux 6.5系統下需要2臺Linux系統一臺A作爲服務端真實機作爲測試客戶端開啓1臺Linux系統。
實驗目標
A作爲服務端配置Samba服務器實現共享服務。
利用Win7真實機測試驗證服務器A的共享是否有效。
實驗步驟
1. 首先將A,B放到同一網段中爲了以後實驗方便配置永久起效的靜態IP地址驗證AB能否通信安裝samba服務。
[root@s5 ftp]#yum-y install samba
2. 備份主配置文件編輯主配置文件。
[global]
workgroup = TARENA工作組名
security = share允許匿名訪問共享
[tools]
comment = Test Share Direstory.共享目錄的描述
path = /usr/src指定共享路徑
public = yes所有人都可訪問
read only = yes默認的權限爲只讀
#browseable = no 啓用此行則爲隱藏共享
[root@s5 ~]#cd/etc/samba/
[root@s5samba]#ls
lmhosts smb.conf smbusers
[root@s5samba]#cp smb.conf smb.conf.gz //備份主 配置文件
[root@s5samba]#vim smb.conf //編輯主配置文件
[global]
security =share
[tools]
comment=Test Share Direstory
path=/usr/src
public=yes
readonly =yes
#browseable=no
3. 啓動服務並在win7上驗證。
[root@s5samba]#/etc/init.d/smb restart