收藏 分享(赏)

快速搭建samba服务器.doc

上传人:hskm5268 文档编号:6750205 上传时间:2019-04-22 格式:DOC 页数:3 大小:14.77KB
下载 相关 举报
快速搭建samba服务器.doc_第1页
第1页 / 共3页
快速搭建samba服务器.doc_第2页
第2页 / 共3页
快速搭建samba服务器.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

1、快速搭建 samba 服务器 1.首先查看系统是否安装 samba 服务器rootlocalhost /# rpm -qa |grep samba如果结果为:samba-3.0.23c-2samba-common-3.0.23c-2samba-client-3.0.23c-2表示系统已经安装成功。如果结果为空,则需做以下操作2.挂载 iso 文件到 mnt 目录下rootlocalhost /# mount /dev/cdrom /mntmount: block device /dev/cdrom is write-protected, mounting read-onlymount: /de

2、v/cdrom already mounted or /mnt busy挂载成功3.进入 CentOS 目录rootlocalhost mnt# cd /mnt/CentOS/rootlocalhost CentOS#4.查找目录下是否有我们需要的安装包rootlocalhost CentOS# ls *samba*samba-3.0.23c-2.i386.rpm samba-swat-3.0.23c-2.i386.rpmsamba-client-3.0.23c-2.i386.rpm system-config-samba-1.2.39-1.el5.noarch.rpmsamba-common

3、-3.0.23c-2.i386.rpm我们需要samba-3.0.23c-2.i386.rpm samba-client-3.0.23c-2.i386.rpm samba-common-3.0.23c-2.i386.rpm开始安装rootlocalhost CentOS# rpm -ivh samba*安装完成后,我们需要对 samba 目录下 smb.conf 进行简单配置rootlocalhost CentOS# cd /etc/samba/rootlocalhost samba# lslmhosts secrets.tdb smb.conf smbpasswd smbusers进入编辑模

4、式rootlocalhost samba# vi smb.conf清空 smb.conf 文件内容,输入:global #全局控制netbios name =myfile #输入/myfile 即可访问(默认是以/ 加 IP 方式访问)workgroup=workgroup #和 windows 在同一个组内server string =sambaserver #共享服务器的描述security=share #以什么形式进行共享( share 表示不需要身份验证)file #共享文件名comment=home directories #文件的描述path=/fileserver/file #文

5、件的共享路径public=yes #控制方式writable=yes #是否可写browseable=yes #是否可浏览新建目录及文件rootlocalhost /# mkdir -p /fileserver/file赋予权限rootlocalhost /# chmod 777 /fileserver/file重启 samba 服务器rootlocalhost /# service smb restart关闭 SMB 服务: 确定关闭 NMB 服务: 确定启动 SMB 服务: 确定启动 NMB 服务: 确定在我的电脑开始运行处输入/myfile 测试看是否成功设置 samba 在系统启动是自动运行:方法一:rootlocalhost /# setup选择系统服务,将其中 smb 勾选即可方法二:rootlocalhost /# chkconfig smb on注意:Samba 服务器的默认安全级别为 user,表示需要用户名和密码才能访问rootlocalhost /# adduser lyjrootlocalhost /# smbpasswd -a lyjNew SMB password:Retype new SMB password:Added user lyj.添加 samba 用户成功。

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报