1 Linux Networking and Security Chapter 5. 2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file.

Slides:



Advertisements
Similar presentations
Chapter One The Essence of UNIX.
Advertisements

1 Linux Networking and Security Chapter 2. 2 Configuring Basic Networking Describe how networking devices differ from other Linux devices Configure Linux.
Homework 5b: Samba. Computer Center, CS, NCTU 2 Network-based File Sharing (1)  NFS (UNIX-based) mountd is responsible for mount request nfsd and nfsiod.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Network+ Guide to Networks, Fourth Edition Chapter 10 Netware-Based Networking.
COS 420 DAY 25. Agenda Assignment 5 posted Chap Due May 4 Final exam will be take home and handed out May 4 and Due May 10 Latest version of Protocol.
Samba Integrating SMB file systems with UNIX. Samba Provides a file server compatible with Windows 9x and NT.. SMB Can function in NETBIOS name browsing.
Chapter 13 Chapter 13: Managing Internet and Network Interoperability.
Understanding Networks I. Objectives Compare client and network operating systems Learn about local area network technologies, including Ethernet, Token.
Network Shares and Accounts Sharing Printers, Drives, Folders – Setup Windows 95/98 Windows NT (2000, XP) Linux – Users – Groups.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
How Clients and Servers Work Together. Objectives Learn about the interaction of clients and servers Explore the features and functions of Web servers.
Module 6 Windows 2000 Professional 6.1 Installation 6.2 Administration/User Interface 6.3 User Accounts 6.4 Managing the File System 6.5 Services.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 8: Implementing and Managing Printers.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 8: Implementing and Managing Printers.
CS 497C – Introduction to UNIX Lecture 35: - TCP/IP Networking Tools Chin-Chih Chang
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Application Layer Functionality and Protocols Network Fundamentals – Chapter.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
1 Network File System. 2 Network Services A Linux system starts some services at boot time and allow other services to be started up when necessary. These.
CMSC 691X – Summer 2002 Project By Pravin D’Souza.
Installing Samba Vicki Insixiengmay Jonathan Krieger.
1 COP 4343 Unix System Administration Unit 16: file server – samba.
UNIT - III. Installing Samba Windows uses Sever Message Block(SMB) to communicate with each other using sharing services like file and printer. Samba.
VPN Plus Samba Making My Home Computing Environment Identical to My Work Computing Environment.
2440: 141 Web Site Administration Remote Web Server Access Tools Instructor: Enoch E. Damson.
1 Linux Networking and Security Chapter 3. 2 Configuring Client Services Configure DNS name resolution Configure dial-up network access using PPP Understand.
1 SAMBA. 2 Module - SAMBA ♦ Overview The presence of diverse machines in the network environment is natural. So their interoperability is critical. This.
BASIC NETWORK CONCEPTS (PART 6). Network Operating Systems NNow that you have a general idea of the network topologies, cable types, and network architectures,
Guide to Operating System Security Chapter 9 Web, Remote Access, and VPN Security.
Workshop 1: Introduction to TCP/IP
1 Linux Networking and Security Chapter 4. 2 Configuring Client Services Configure “superservers” to handle multiple network services Set up administrative.
MCSE Guide to Microsoft Exchange Server 2003 Administration Chapter Four Configuring Outlook and Outlook Web Access.
1 Network File Sharing. 2 Module - Network File Sharing ♦ Overview This module focuses on configuring Network File System (NFS) for servers and clients.
1 COP 4343 Unix System Administration Unit 15: file server – ftp – nfs.
1 Guide to Novell NetWare 6.0 Network Administration Chapter 13.
Chapter 9: Novell NetWare
VsFTP in Linux. Introduction to FTP The File Transfer Protocol (FTP) is used as one of the most common means of copying files between servers over the.
CIM6400 CTNW (04/05) 1 CIM6400 CTNW Lesson 6 – More on Windows 2000.
Ferry Astika Saputra Workshop Administrasi Jaringan SAMBA PROTOCOL.
SAMBA Integrating Linux and Window. What is Samba? Free suite of programs that enables flavors of UNIX to work with other operating systems such as OS/2.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Application Layer Functionality and Protocols Network Fundamentals.
New SA Training Topic 8: File System Access  Our organization uses a variety of services for accessing files on remote systems  WWW  FTP  CIFS/SMB.
Chapter Three Network Protocols By JD McGuire ARP Address Resolution Protocol Address Resolution Protocol The core protocol in the TCP/IP suite that.
Samba version What is the Samba? Samba is a suite of programs which work together to allow clients to access to a server's filespace and printers.
Linux+ Guide to Linux Certification Chapter Fifteen Linux Networking.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
Guide to Linux Installation and Administration, 2e1 Chapter 2 Planning Your System.
Hour 7 The Application Layer 1. What Is the Application Layer? The Application layer is the top layer in TCP/IP's protocol suite Some of the components.
Chapter 3: Services of Network Operating Systems Maysoon AlDuwais.
Computer Networking From LANs to WANs: Hardware, Software, and Security Chapter 13 FTP and Telnet.
Sys Admin Course NFS and SAMBA Fourie Joubert. Sys Admin Course NFS NFS is the Network File System It allows Linux systems to share a file system, or.
Windows-Linux Interconnection Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved Samba.
Accessing Evitech network via FTP by Susan Jansson.
17 Establishing Dial-up Connection to the Internet Using Windows 9x 1.Install and configure the modem 2.Configure Dial-Up Adapter 3.Configure Dial-Up Networking.
Linux Operations and Administration
COMP1321 Digital Infrastructure Richard Henson March 2016.
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
PRESENTED BY ALI NASIR BITF13M040 AMMAR HAIDER BITF13M016 SHOIAB BAJWA BITF13M040 AKHTAR YOUNAS BITF13M019.
Unit –III CHAP-I 1 Created By Asst. Prof. Ashish Shah, J.M.Patel College of Commerce.
LINUX - SAMBA
Microsoft OS Vulnerabilities April 1, 2010 MIS 4600 – MBA © Abdou Illia.
Guide to Operating Systems, 5th Edition
Network Administration Module 09
Exercise 7 Samba.
LINUX ADMINISTRATION 1
Network Operating Systems Examples
Chapter 3: Windows7 Part 4.
Samba.
A Network Operating System Edited By Maysoon AlDuwais
Presentation transcript:

1 Linux Networking and Security Chapter 5

2 Configuring File Sharing Services Configure an FTP server for anonymous or regular users Set up NFS file sharing between Linux and UNIX systems Understand NetWare NCP-Based file sharing Use SMB to share files and printers with Windows-based PCs

3 Running an FTP server The File Transfer Protocol (FTP) was designed for efficient distribution of a single file to multiple remote clients Some design characteristics of FTP:  FTP operates in real-time  FTP was designed to be used by the public and this is called anonymous FTP  FTP is very effective for transferring large files  FTP was not designed as a “shared local disk”

4 Using an FTP Client Accessing an FTP site requires an FTP client Linux includes a text-mode FTP client, some Linux systems include a newer and refined text-mode ftp system called ncftp An FTP client session begins with the ftp command  If the system connects, users are prompted for username and password

5 Using an FTP Client

6

7

8

9 Introducing FTP Servers The most widely used FTP server on Linux is the Washington University server, wu-ftp Setting up the FTP server is done via a number of configuration files In addition to configuration files, there is the anonymous user home directory:  Anonymous users do not see the entire file system and are limited to a working area, or home directory that designates downloadable files

10 Introducing FTP Servers

11 Setting Up FTP Configuration Files The FTP server is configured using the ftpaccess file in the /etc directory  There are three types of FTP users: Anonymous, Real, and Guest  Classes of users can be created, which allow you to assign permissions based on groupings  Permit FTP users to perform file actions using a series of directives naming the file action, followed by yes or no, followed by the classes of user to which the directive applies

12 Setting Up FTP Configuration Files

13 Setting Up FTP Configuration Files

14 Sharing Files with NFS The Network File System (NFS) provides access to remote files systems as if they are part of the local directory structure  NFS was designed for permanent, long-term connections where remote file systems are used as part of the regular user environment  NFS does have security concerns and was designed with a trusted network in mind  NFS is UNIX-centric and does not typically perform well with Windows or NetWare servers

15 Running the NFS Daemons The NFS protocol is implemented by several daemons, each handling different tasks NFS communication is built on the remote procedure call (rpc) system  This system functions almost like a superserver in that programs are assigned an rpc number  A program called portmap watches for rpc requests from programs like NFS daemons, then maps them to TCP or UDP ports  NFS uses the rpc.mountd daemon to make new connections

16 Accessing Remote NFS File Systems Acting as a client to an NFS server is straightforward; use the mount command for any local hard disk partitioning containing a file system needing access  The mount point must be created and the host must have allowed mounting of the directory  Mount options include altering the default buffer size for NFS transfers, read-only or read-write permission, hard or soft mounts, and suppressing automatic mounting at system startup

17 Exporting Your File System Using NFS To make parts of your file system accessible over the network to other systems, NFS daemons must be running and NFS traffic must be allowed to pass between the hosts  Beyond this, the /etc/exports file must be set up to define which of the local directories will be available to remote users and how each is used  NFS uses a security concept called squashing to prevent a user from gaining access to a user account (especially to the root account) simply because they have an ID on the NFS client

18 NetWare File and Printer Sharing NetWare protocols can be used on Linux to act as NetWare file and print servers, or as a client to other NetWare servers  To use either the client or server tools for NetWare, IPX must be installed on Linux  NetWare uses a transport protocol called the NetWare Core Protocol (NCP)  NetWare is a dedicated network operating system, but in the context of Linux, these servers are limited to file and printer sharing

19 Accessing NetWare Servers as a Client The ncpfs package implements NCP and provides a number of client utilities allowing log in, file transfer, printing and so forth  The ncpfs package is not installed by default  The ncpfs utilities allow the specification of command-line parameters for server contact  Alternatively, create a.nwclient file in the home directory that contains the NetWare default settings

20 Accessing NetWare Servers as a Client

21 Making Linux Into a NetWare Server Most Linux distributions contain a package that lets a system emulate a NetWare server  The Martin Stovers NetWare Emulator package (mars-nwe) provides NetWare-specific protocols  In addition to NCP transport protocol, mars-nwe provides the NetWare Routing Information Protocol (RIP) and the Service Addressing Protocol (SAP) that let Linux act as a peer with other NetWare servers  Configure mars-nwe using the /etc/nwserv.conf

22 Windows File and Print Integration with Samba To implement the Windows-based protocols such as Server Message Block (SMB), Common Internet File System (CIFS) and NetBIOS in Linux, use the Samba suite  The server portion of Samba allows a Linux system to appear in Windows networks as if it were another Windows system  The client portions of Samba also let Linux access Windows systems that are configured to share their resources

23 Using Samba Client Utilities Samba client utilities allow access to shared Windows resources as if another Windows-based computer  The smbclient utility is a command-line utility that allows logging into a Windows host, and interacting using a series of commands  To graphically access a Windows system, mount a Windows share as part of Linux by the standard mount command using a file system type of smbfs  Printing to a Windows printer is done using the smbprint command

24 Using Samba Client Utilities

25 Using Samba Client Utilities

26 Using Samba Client Utilities

27 Using Samba Client Utilities

28 Setting Up a Samba Server Samba includes two server daemons:  nmbd, which implements the NetBIOS service  smbd, which implements the SMB file and print sharing  Both of these daemons must be running to implement a Samba server  Both are managed using a single script in /etc/rc.d/init.d Samba configuration files are typically stored in /etc/samba

29 Creating Samba Users The user security model requires users to log in with a valid user name and password before using a share on the Samba server  Several utilities included with the Samba suite allow for everyone with a Linux user account to also log in via Samba  The following command creates a Samba password for all Linux users: cat /etc/passwd | mksmbpasswd.sh > /etc/samba/smbpasswd

30 Using SWAT to Configure SMB SWAT is a browser-based graphical interface that sets up the smb.conf file, restarts the Samba server, and provides some status information on server utilization  SWAT runs a network service managed by the superserver  To use SWAT, the SWAT service must be included in the /etc/services file  SWAT must also be enabled in the superserver configuration

31 Using SWAT to Configure SMB

32 Using SWAT to Configure SMB

33 Using SWAT to Configure SMB

34 Accessing Samba from Windows Once a Samba server is up and running, there is access to Linux files and printers from any Windows-based host  All that is required is the correct Windows networking configuration and a valid username and password  Samba uses only TCP/IP, so TCP/IP should be configured in the Windows environment

35 Accessing Samba from Windows

36 Chapter Summary FTP is a widely used Internet protocol that was designed for efficient transfer of files from a server to multiple clients at diverse locations The anonymous feature of FTP makes it popular for public download archives To access an FTP server, you can use the text-mode client, ftp, graphical clients such as gFTP or IglooFTP, or a Web browser The standard FTP server is wu-ftpd You can configure classes of users in ftpaccess, then assign permissions to perform different file actions

37 Chapter Summary The Network File System (NFS) lets you access remote file systems as part of your local directory structure by using the mount command to contact an NFS server An NFS server consists of several possible daemons; at the least, nfsd and rpc.mountd are required An NFS server is configured using the /etc/exports file, which defines which local directories are available for remote users to mount NFS is prone to security holes, but it relies on several layers of security

38 Chapter Summary The NetWare network operating system can be emulated on Linux as a powerful file-and-print server using the mars-nwe package The mars-nwe NetWare emulator is configured using the /etc/nwserv.conf file Linux can access NetWare servers as clients using the ncpfs package, which provides a number of command-line tools to manage NetWare servers Windows networking uses the NetBIOS and SMB (also called CIFS) protocols, both of which are implemented by the Samba suite in Linux

39 Chapter Summary Using the Samba client utility smbclient and mounting Windows file systems of type smbfs provide convenient access to shared resources A simple Samba server configuration in smb.conf involves defining the server name, basic security options, and defining shares SWAT provides graphical configuration and administration functionality for Samba Multiple Samba security models are supported, including Windows NT domains and guest accounts, which often use Samba as a dedicated print server