文件共享服务器第二部,第二章-构建Samba文件共享服务器.docx

洛阳鸿卓国际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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值