版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Talking to Windows with Samba,Critical Skill,Understand mechanics of SMB Perform Samba administration Use smbclient and smbmount Access share files between Windows and Linux systems Security levels for samba client,The way in which SMB works,What is SMB?,SMB, which stands for Server Message Block, i
2、s a protocol for sharing files, printers, and serial ports between computers.,What is Samba,a software suit allowing Unix-based systems (such as Linux) to interoperate with Windows-based systems provides file and print service to all of manner of SMB clients, including numerous version of Microsoft
3、Windows operating systems (为SMB用户提供文件和打印共享的服务),Network Topology for Samba Server,Samba,SMB Client,Samba,SMB Client,SMB Client,Samba daemons:smbd and nmbd nmdb daemon lets other computer browse Linux service through port 139 smbd daemon makes remote Windows system possible to access Linux system thro
4、ugh port 137 or 138,Configuration File for Samba,/etc/samba/smb.conf : service configuration file (samba 的服务配置文件) Check samba status /etc/rc.d/init.d/smb status smbd (pid 1005) is running nmbd (pid 1016) is running Start, stop, restart,Structure of Samba smb.conf Global: basic configuration and shar
5、ing resource (服务器的基本设置和共享资源的设置) Homes:set up a home directory for Samba server (设置访问Samba服务器的用户主目录) Printers:Set up a sharing printer (设置Linux主机上共享的打印机) Userdefined_ShareName: sharing directories (设置用户共享目录),Security level for Samba users Share: logon system without checking user account and password
6、 User: need to provide user account and password when accessing,Configure Samba Server,Step1: Create samba accounts (add samba user) for all users existed #cat /etc/passwd | mksmbpasswd.sh /etc/samba/smbpasswd Step2: Create a samba account for each user,you may add a new user with “useradd” and use
7、smbpasswd to create samba passwd if the user does not exist.,you may use smppasswd a user to create a samba user account.,Step3: Modify /etc/samba/smb.conf make sharing file /etc/samba/smbusers /allow Linux users map to SMB user #smbclient L host /show sharing resource, no passwd needed,Access Samba
8、 file (s) in Linux environment smbclient L host smbclient hostshare directory,Access Each Other,Could we really access the share directory?,DO NOT FORGET TO CHANGE PERMISSION !,Windows shares Linux file(s) Network neighbor (网上邻居) Address bar IP address or host name Use “net use * /delete “ to clean
9、connection in buffer,Linux accesses windows files Exports files (开放文件共享功能) Log in windows system and to view shared resource as a smb client,#smbclient L hostdirectory #smbclient hostdirectory #smbmount /host/directory /mnt/smb,You may has a same user account in Linux and Windows,Login and logoff sm
10、bclient host nameshared file # smbclient sicnu1C smb: ? (帮助) exit,Questions: 1. Try to change security level. 2. Test the security within different OSs-Windows XP home edition, professional edition.,Laboratory 12 Sharing Resource between Windows System and Linux System(Verified 4 class hours),Labora
11、tory Objectives Understand mechanism of SMB Learn to management of sharing resource with samba Learn usage of smbclient and know mounting with smbmount Tools and Preparation Red Hat Linux operating system Details for Laboratory Set up and configure the configuration file for samba, start smb,and che
12、ck result Share resource between windows and Linux Share a directory in Windows, then access the shared resource using smbclient and smbmount in Linux,Set up samba in Linux,then access the shared resource through windows. Requirements: Configure with share security level Create a directory /test in home root directory Share /test with read an
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 匈牙利与俄罗斯协议书签证
- 2025年在线教育行业中小学人工智能启蒙课程市场趋势报告
- 黄石市就业指导中心
- AI党史手抄报设计
- 2026青海西宁正华建设投资控股有限公司招聘2人备考题库附参考答案详解(综合卷)
- 2026山东枣庄市滕州市招聘教师87人备考题库及答案详解【有一套】
- 2026湖南湘西州古丈县公安局招聘留置看护警务辅助人员的9人备考题库附答案详解(培优)
- 2026四川省八一康复中心招聘工作人员(编制外)7人备考题库含答案详解(b卷)
- 2026广东清远私立学校2026年教师招聘37人备考题库带答案详解(b卷)
- 2026四川成都市锦江区学府幼儿园招聘员额教师2人备考题库含答案详解(夺分金卷)
- 海康门禁系统产品技术方案
- 2025年新疆高端会计人才笔试题及答案
- 营养学电子课件
- 设备升级改造管理制度
- 台球俱乐部规章管理制度
- 2025年4月自考06091薪酬管理试题及答案
- 2025年浙江宁波城建投资集团有限公司招聘笔试参考题库含答案解析
- 高中生艾滋病预防教育课件
- 2025-2030年中国隔音窗通风口行业市场现状供需分析及投资评估规划分析研究报告
- 路面铣刨合同协议
- 医疗机构抗菌药物使用培训计划
评论
0/150
提交评论