Network File Sharing Chapter 18. Chapter Goals Understand concepts of network file sharing Understand NFS server setup Understand NFS client setup Understand.

Slides:



Advertisements
Similar presentations
Network-Attached Storage
Advertisements

Chapter 9 Chapter 9: Managing Groups, Folders, Files, and Object Security.
Linux+ Guide to Linux Certification, Second Edition Chapter 14 Network Configuration.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 5: Managing File Access.
A Guide to Unix Using Linux Fourth Edition
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment Chapter 5: Managing File Access.
Hands-On Microsoft Windows Server 2003 Networking Chapter 7 Windows Internet Naming Service.
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.
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.
Hands-On Microsoft Windows Server 2003 Administration Chapter 6 Managing Printers, Publishing, Auditing, and Desk Resources.
TCP/IP - Security Perspective Upper Layers CS-431 Dick Steflik.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
NETWORK FILE SYSTEM (NFS) By Ameeta.Jakate. NFS NFS was introduced in 1985 as a means of providing transparent access to remote file systems. NFS Architecture.
Network File System CIS 238. NFS (Network File System) The most commercially successful and widely available remote file system protocol Designed and.
Joshua Caltagirone-Holzli
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.
Remote Disk Access with NFS
Securing Access in a Heterogeneous Network Environment Providing Interoperability between Microsoft Windows 2000 and Heterogeneous Networks Securing Authentication.
CMSC 691X – Summer 2002 Project By Pravin D’Souza.
Installing Samba Vicki Insixiengmay Jonathan Krieger.
11 SHARING FILE SYSTEM RESOURCES Chapter 9. Chapter 9: SHARING FILE SYSTEM RESOURCES2 CHAPTER OVERVIEW Create and manage file system shares and work with.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Chapter 11: Creating and Managing Shared Folders BAI617.
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
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.
Chapter 4 Windows NT/2000 Overview. NT Concepts  Domains –A group of one or more NT machines that share an authentication database (SAM) –Single sign-on.
Windows interoperability with Unix/Linux. Introduction to Active Directory Integration for Unix and Linux Systems Unix/Linux interoperability components.
Chapter 7: Using Windows Servers to Share Information.
CSC 456 Operating Systems Seminar Presentation (11/13/2012) Leon Weingard, Liang Xin The Google File System.
A Guide to Unix Using Linux Fourth Edition
Hands-On Microsoft Windows Server 2008 Chapter 1 Introduction to Windows Server 2008.
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.
INSTALLING MICROSOFT EXCHANGE SERVER 2003 CLUSTERS AND FRONT-END AND BACK ‑ END SERVERS Chapter 4.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 5: Managing File Access.
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.
Fall 2011 Nassau Community College ITE153 – Operating Systems Session 23 Shared Folders 1.
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, Second Edition Chapter 14 Network Configuration.
Single Sign-on with Kerberos 1 Chris Eberle Ryan Thomas RC Johnson Kim-Lan Tran CS-591 Fall 2008.
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.
What is a Distributed File System?? Allows transparent access to remote files over a network. Examples: Network File System (NFS) by Sun Microsystems.
1 Administering Shared Folders Understanding Shared Folders Planning Shared Folders Sharing Folders Combining Shared Folder Permissions and NTFS Permissions.
Introduction to AFS IMSA Intersession 2003 AFS Servers and Clients Brian Sebby, IMSA ‘96 Copyright 2003 by Brian Sebby, Copies of these.
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.
Samba – Good Just Keeps Getting Better The new and not so new features available in Samba, and how they benefit your organization. Copyright 2002 © Dustin.
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.
Network File System Campus-Booster ID : **XXXXX Copyright © SUPINFO. All rights reserved NFS.
NFS Network File System. NFS (Network File System) Network file systems allow us to share files between users on different systems, often with different.
Distributed File Systems Objectives –to understand Unix network file sharing Contents –Installing NFS –How To Get NFS Started –The /etc/exports File –Activating.
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 14: Windows Server 2003 Security Features.
Free Powerpoint Templates Page 1 Free Powerpoint Templates Users and Documents.
Linux Operations and Administration
Introduction to AFS IMSA Intersession 2003 An Overview of AFS Brian Sebby, IMSA ’96 Copyright 2003 by Brian Sebby, Copies of these slides.
Distributed Systems: Distributed File Systems Ghada Ahmed, PhD. Assistant Prof., Computer Science Dept. Web:
Chapter 7: Using Network Clients The Complete Guide To Linux System Administration.
Windows interoperability with Unix/Linux
Chapter 7: Using Windows Servers
File System Implementation
Chapter 3: Windows7 Part 4.
IS3440 Linux Security Unit 4 Securing the Linux Filesystem
CIT 470: Advanced Network and System Administration
Windows Server Administration Fundamentals
Chapter 15: File System Internals
Network File System (NFS)
Presentation transcript:

Network File Sharing Chapter 18

Chapter Goals Understand concepts of network file sharing Understand NFS server setup Understand NFS client setup Understand NFS security Understand NFS mount options Understand differences and similarities between AFS and NFS Understand basics of Microsoft File Sharing

Network File Sharing File servers make files available to other hosts on the network. File service clients obtain file systems from file servers. File service peers are (both) servers and clients. Network file sharing employs Remote Procedure Calls (RPC’s).

Network File Sharing Network File Systems allow the users files to “migrate” from workstation to workstation with them. Network File Systems simplify life for the user, but generally make system administration more complicated (due to the setup costs). In Lab 6 we will setup the Sun Network File System (NFS) services on the lab machines. NFS has two components: The server side software, and the client side software. Each component is actually a suite of programs which implement the sockets required to provide network based filesystems. NFS is stateless.

Network File Sharing Server side: –Rpcbind (portmap) –Mountd - respond to mount requests (sometimes called rpc.mountd). Relies on several files –/etc/dfs/dfstab, –/etc/exports, –/etc/netgroup –nfsd - serves files - actually a call to kernel level code. –lockd – file locking daemon. –statd – manages locks for lockd. –rquotad – manages quotas for exported file systems.

Network File Sharing Client Side –biod - client side caching daemon –mount must understand the hostname:directory convention. –Filesystem entries in /etc/[v]fstab tell the client what filesystems to mount.

Network File Sharing

The mount command has several extensions for use with NFS. Mount has to understand timeouts, soft mounts, background mounts, and the automounter. – rw/ro - Read/write and read only. NFS file systems that are mounted read/write can block activity on the client when the server providing the file system becomes unavailable. See intr and bg below. – hard/soft - The hard option mounts an NFS file system in such a way as to ensure that data is written to the remote file system. If the file server becomes unavailable, a file system mounted with the hard option will stop all remote file operations until the file server becomes available again. All file systems mounted with the rw option should also use the hard option to ensure the integrity of data written to the file system. The soft option does not provide assurance of data writes to the remote file system, but does not stop remote file operations in the case of a file server becoming unavailable. This option is useful for file systems that are mounted read-only.

Network File Sharing – suid/nosuid - The nosuid option negates the effect of programs on the remote file system for which respective setuid bits are set. Setuid programs run from NFS file systems mounted with the nosuid option are executed with the normal permissions of the user executing the program, not those conferred by the setuid bit. This option is used to increase the security of the client by preventing setuid programs on remote file systems from being used on the client system. – bg/fg - This option pair controls how to handle a failed mount of an NFS file system. Mounts with the bg option are retried in the background, freeing the shell which issued the mount command. Use this option when mounting file systems in /etc/vfstab or /etc/fstab to prevent a workstation from stopping during the boot sequence because a file server is down. – intr/nointr - The nointr option prevents program interrupts when programs cause an NFS operation to occur. This can result in programs being uninterruptible when an NFS file server becomes unavailable. The default is to allow interrupts so that programs can be aborted in the event of server failures.

Network File Sharing – retry=n - Number of times to retry a failed mount. The default of 10,000 is usually sufficient. – timeo=n - Time-out value for retrying NFS operations. Increase this value to permit very slow systems, such as near-line file stores, more time to complete basic operations. – retrans=n - Number of retransmissions of a given NFS operation. The setting depends on the network and type of server being used. Some networks where packet loss is high benefit from an increase in the number of retransmissions. – rsize=n - Read buffer size. Some servers and clients (e.g., those with slower or less reliable network connections) perform better when the buffer used for NFS operations is a different size than the default. – wsize=n - Write buffer size. Similar to rsize in usage.

Network File Sharing – proto=? - Controls the network protocol used to transport NFS data. NFS uses IP datagrams by default. By setting proto=tcp, NFS will use tcp, thereby improving performance when moving data over wide area networks and the Internet. – secure - On Solaris 7 and early versionsof NFS this option enables NIS+ public key cryptography to be used for NFS authentication and encrypted communications. This option has been deprecated in favor of the “sec=?” option below. – sec=? - New in Solaris 8. This option replaces the “secure” option of previous versions. It controls the security mode used for NFS. Options are “sys” for UID & GID based control, “dh” (Diffie-Hellman) for NIS+ based public key cryptography, “kerb4” for MIT Kerberos authentication and “none” which provides no authentication and maps all accesses to “nobody” as described below.

Network File Sharing – quota/noquota - Setting this option enables disk quota checking via the rquota service. The rquotad daemon must be running on the server for this to function. Noquota is the default. – remount - This option is often used when mounting a file system manually. It converts a mount point from read-only to read-write status. – vers=n - NFS protocol version number (2 or 3). By default, the mount command will attempt to use the highest version number protocol available from the server. This option allows the protocol version to be fixed for use with servers that support only the older version 2 protocol.

Network File Sharing –NFS is NOT secure. Keep /etc/dfs, /etc/exports locked up (root readable), Use Fully Qualified Domain Names for hosts (FQDN). Make sure you implement any security patches for NFS. Make sure you get rid of “+” in any automount map files! Monitoring NFS –The nfsstat command can be used to look at the NFS performance statistics. The -s flag looks at server statistics, and the -c flag looks at client side statistics.

Network File Sharing Windows uses a different approach to file sharing. –Server Message Block (SMB) is a proprietary protocol that was developed to support Windows networking. Port 135 Port 136 Port 137 – the NetBios Name Service Port 138 Port 139 – The NetBios Session Service –Now that Microsoft has embraced TCP/IP networking, Windows is converting to a new protocol: Common Internet File System (CIFS).

Network File Sharing Permissions –Under NFS, and AFS, the user (or administrator) can assign access permissions to directories, and to the files within those directories. –Under Windows, the permissions cover the directory. Files within a directory inherit the permissions of the directory. –Shared folder permissions only apply to the folder when it is accessed via the network. The local permissions pertain when accessing files locally on the server. –The default permission under Windows is “Everyone: Full Control” ! This means that everyone has access to all files in the shared folder.

Network File Sharing Group Permissions –Domain Administrator and Server Operator groups can share folders on any host in the domain. Power Users can share folders on a single host. –Workgroup Administrators and Power Users can share folders. –Users with the Create Permanent Shared Objects permission can create shares.

Network File Sharing Some folders are shared automatically: –The share name has a “$” appended to the end. –These shares are “hidden” shares. –Automatically shared folders include: The root of each volume (C$ D$ E$ …) The system root folder (Admin$) The location of the printer drivers (Print$)

Network File Sharing Sharing setup –Right click the folder –Select Sharing –Fill in the forms –Network File Sharing is much easier to set up than NFS/AFS. –Network File Sharing is much less secure than NFS/AFS.

Network File Sharing SAMBA is an SMB/CIFS file sharing daemon that runs on UNIX hosts. –Clients make SMB requests on the network –Samba accepts SMB file requests from clients and uses UNIX calls to obtain requested file from disks. –Samba returns SMB file information to the client. –SAMBA is free. –TotalNet is another solution which performs the same function. TotalNet is a commercial product. –“Dave” performs the same function for MacOS. (Free) Xinet is a commercial product that performs the same function.

Network File Sharing –A common goal for an organization is to provide one file farm which is accessible from all platforms. At Notre Dame we use AFS – it is native to the UNIX environment, but it works for Windows/MacOS. –The MacOS and Windows AFS access may be via an AFS to NFS translator box. »The client machines run NFS. »The clients make NFS requests to a translator. »The translator makes AFS requests to the fileserver. –NT is supported as a native AFS client. NT does not require AFS translators. »NT port uses a memory based filesystem cache »NT port is not very robust. »OpenAFS is much better than TransArc’s NT client.

Network File Sharing Athena File System (AFS) –AFS came from the CMU Athena File System. –AFS is now distributed as a commercial product by TransARC Corporation (part of IBM). –OpenAFS is an open source version of AFS built from TransARC source code. –ARLA is another open source AFS built from independent code. –AFS appears most often at Universities. –AFS was supposed to be a precursor to DFS (Distributed File System). –AFS and NFS do the same things, so why chose one over the other?

Network File Sharing NFS –Distributed with OS –client side cache is optional –clear-text passwords on net –Does not scale well –Uses standard UNIX permissions –Not secure –More reliable than AFS (?) AFS –Add-in product –client side caching is standard –authenticated challenge on net –scales well –Uses Access Control Lists (ACL’s) –More secure than NFS –Less reliable than NFS (?)

Network File Sharing NFS –Low administrative overhead –Standard UNIX backup /restore –Available for most OS –Distributed administration –Uses standard utilities AFS –High administrative overhead –“Enhanced” backup /restore –Limited OS availability –Central administration –replaces standard utilities

Network File Sharing AFS –AFS replaces many system library calls with custom versions: passwords - are stored in a common (AFS) file. ftp, telnet, rlogin, rsh have to be modified to use the new password utility. (NO LONGER TRUE as of Solaris 2.6 when using PAM) root’s password is held locally in the normal location, so root is not an authenticated AFS user. The filesystem code is altered such that the local cache disk is checked for files before going to the network.

Network File Sharing AFS –AFS improves system security due to the way it authenticates the users: The UID of the user is ignored by the filesystem. The filesystem relies on an authentication token instead. NFS uses the user id to authenticate file access. The UID can be changed by a crafty user. On standard UFS filesystems, root can read/write every file. NFS can also allow root read/write. Under AFS, root does not have the ability to go read other users (AFS based) files.

Network File Sharing AFS –When you install AFS, the installation procedure creates some new directories: –/usr/afsws - contains the binaries for the AFS suite: fs, tokens, pts –/usr/vice - contains the AFS administrative files: cache files (/usr/vice/cache) administrative information about this AFS client (/usr/vice/etc). –The package software is also installed. Package is a utility for updating system files upon reboot.

Network File Sharing AFS Once all of the binaries are in place, the afs software creates a cache directory and initializes a series of files in this directory. When the cache scan is complete, the system reboots so that AFS will start up on the system. At reboot, the package utility looks for a configuration file which tells which files to sync to the master repository. –This architecture dependent file tells package which files need to be updated, what modes to make things, which entries are regular files, which entries should force a reboot if they get updated, etc.

Network File Sharing AFS Once the package command has updated all of the files it looks to see if any of the updated files had the “reboot” flag set. If so, the system reboots again. This time, the system files should all be up to date. Departments can even use their own package run (controlled by /.package_dept) which updates specific files (sendmail, password files, message of the day, hosts files, Mentor Graphics links). –If any of these files have the “reboot” flag set, the system reboots again.

Summary Network File Sharing relies on Remote Procedure Calls. Network File Sharing is convenient for users. Network File sharing requires setup by the sysadmin. Network file sharing opens the door to many security problems.