洛阳鸿卓国际IT
洛阳鸿卓国际IT教育培训中心
姓名: 梁冬辉
时间:2012
章实验报告
所在班级: T1181
月16
实 验 任 务
日
Linux服务器版系统的地址为
Win dows系统的地址为
网络拓扑
检查smb服务消息是否安装
[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
安装
详 细 实 验 步 骤
[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
设置为匿名访问
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
设置用户名及密码登陆的访问
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
设置共享文件的名称、路径、权限、
[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
更改文件的权限
Iroot^Xocalhost (root^Xocalhost [root^localhost
share]# share]# share]#
chmod 1777 chmod 1777
Ts
devel training
devel public training [root^localhost share]# 总计24 drwxr-xr-x dr>/xr-xr-x drvxrwj^rwt dxrwEt drvxrwxfvt
Is -al
5
23
2
2
2
root root root roo