linux管理及应用chap13-samba-N_第1页
linux管理及应用chap13-samba-N_第2页
linux管理及应用chap13-samba-N_第3页
linux管理及应用chap13-samba-N_第4页
linux管理及应用chap13-samba-N_第5页
已阅读5页,还剩15页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论