文件共享服务器第二部,第二章-构建Samba文件共享服务器.docx
洛陽鴻卓國際IT
洛陽鴻卓國際IT教育培訓(xùn)中心
姓名: 梁冬輝
時(shí)間:2012
章實(shí)驗(yàn)報(bào)告
所在班級: T1181
月16
實(shí) 驗(yàn) 任 務(wù)
日
Linux服務(wù)器版系統(tǒng)的地址為
Win dows系統(tǒng)的地址為
網(wǎng)絡(luò)拓?fù)?/p>
檢查smb服務(wù)消息是否安裝
[rootocaThOSt /]# cd /unt/Asianux/RPMS/
i root^Iocalhostrpir *qa | grep samba
sanb3*client*;3.O.;33-3.28.O,l,AX£3
sanb3*3,0,33*5.28,0,l.AXS3 sanba*coiii[non*5.0.;33-3.28.0,1, AXS3
安裝
詳 細(xì) 實(shí) 驗(yàn) 步 驟
[root^localhost /]#[wi /etE/yum.rgpos.d/Emignux.repo〕 (root@Tocalhost /]l# lyum Lnstall samba-clien甘 tore
core/primary
core
Setting
Package
ion
Nothinq
1.3 kB
555 kB
00:00
00:00
1457/1457
up Install FrocesE
samba-client-3.0.33-3,,. 28.0.1 .AXS3.1366 already installed and
latest vers
to do
倉U建 public、devel、training
[rool^lacalhost share]# nkdir training
[rool^Tocalhost share]# nkdir devel
[rool^locaThost share!# Is
devel public traininq
設(shè)置為匿名訪問
Security can be set to user, sharet de predated I or pervert deprecated)
Backend to store user infornalion in. New installations should use either tdbsani or Idap呂am. snibpasswd is available for backwards 匚onpatibility, tdbsam requires ro further configuration,
security = share| passdb baickend = tdbsam
設(shè)置用戶名及密碼登陸的訪問
Security can be set to user. share(deprecated) our server!deprecated)
Backend to store user information in. New installations should use either tdbsam or Tdapsam, smbpa芻swd is aw日ilable for backward芻 compatibility, tdbsam requires no further configuration.
security = user passdb backend 二 tdbsam
設(shè)置共享文件的名稱、路徑、權(quán)限、
[public]path=/var/sh3re/public read only二yes publ.ic=ye£[peixun]path=/var/share/lraining valid user=admin,^j
[public]
path=/var/sh3re/public read only二yes publ.ic=ye£
[peixun]
path=/var/share/lraining valid user=admin,^jishu
[kaiful
pa th =/var/share/devel read user=Ojishu write list=admin.^benet directory iiask=0700 Sreste mask=0600
更改文件的權(quán)限
Iroot^Xocalhost (root^Xocalhost [root^localhost
share]# share]# share]#
chmod 1777 chmod 1777
Ts
devel training
devel public training [root^localhost share]# 總計(jì)24 drwxr-xr-x dr>/xr-xr-x drvxrwj^rwt dxrwEt drvxrwxfvt
Is -al
5
23
2
2
2
root root root roo
總結(jié)
以上是生活随笔為你收集整理的文件共享服务器第二部,第二章-构建Samba文件共享服务器.docx的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: anjularjs ajax 调用,An
- 下一篇: 梦幻西游的攻略