Free Essay

Sharing Files with Nfs

In:

Submitted By LC24
Words 711
Pages 3
Lawrence Carr
NT1430
Unit 7 Sharing Files with NFS
Network File System (NFS) is a distributed file system protocol originally developed by Sun Microsystems in 1984, allowing a user on a client computer to access files over a network much like local storage is accessed. NFS, like many other protocols, builds on the Open Network Computing Remote Procedure Call (ONC RPC) system. The Network File System is an open standard defined in RFCs, allowing anyone to implement the protocol. NFS is the most-known service using remote procedure call (RPC). It is an excellent way of sharing files between Linux and other UNIX systems. NFS also allows for machines to mount without authentication, at boot, which is great if you have a cluster of systems or if you want to use a centralized home directory system (using an NFS-mounted directory for home directories to keep your configurations and files identical on multiple systems). The computer where directory located is called the server and computers or devices connecting to that server are called clients. Clients usually 'mount' the shared directory to make it a part of their own directory structure. NFS is perhaps best for more 'permanent' network mounted directories such as /home directories or regularly accessed shared resources. If you want a network share that guest users can easily connect to, Samba is more suited. This is because tools exist more readily across old and proprietary operating systems to temporarily mount and detach from Samba shares. NFS is also very easy to set up. To begin, you need to install the NFS package, so on Fedora or Red Hat Enterprise Linux and other similar systems, install the nfs-utils package, # yum install nfs-utils. Next, you will need to edit /etc/exports which are where we define what filesystems can be remotely accessed. What this /etc/exports does is export the /srv directory on the server to the hosta.domain.com computer as read/write and to hostb.domain.com as read-only. It also exports /home as read/write to any computer in the network. There are other options you can supply on a per-host or per-network basis, including the no_root_squash option which will not prevent root on a client machine from writing files to the server as root; by default, NFS will map any requests from root on the client to the 'nobody' user on the server. Next, check /etc/hosts.allow and /etc/hosts.deny. NFS will check these files for access controls to the server. This is particularly necessary if you are using wildcards or broad network specifications in /etc/exports; using hosts.allow and hosts.deny you can fine-tune which clients do and don't have access. Finally, to start NFS sharing, on the server you need to start a few services as follows; # service portmap start, # service nfs start, # service nfslock start, # service rpcbind, start, and # service rpcidmapd start. To see what filesystems are exported, use the exportfs command; if you've made changes to /etc/exports, use exportfs -ra to force NFS to re-read the configuration. To make sure that NFS is running, use the rpcinfo command; if it returns a list of services and addresses being listened to, you know it is running. Finally, if you are running iptables on the server as a firewall, you will need to change what ports the NFS services listen to. By default, these are random unused ports, with portreserve/portmap letting requesting services know what ports to connect to. This is a major difference between NFSv3, where this is true, and NFSv4 which solely uses TCP port 2049, so this largely depends on which version of NFS you plan to use or enforce. On Fedora or Red Hat Enterprise Linux, this can be done by editing /etc/sysconfig/nfs. The next step is to open the firewall on these ports, which can be done by editing /etc/sysconfig/iptables (again keeping in mind this is on a RHEL system). After the changes are made, restart the firewall and the NFS services. At this point, your NFS server is set up and ready to accept connections from remote clients, which can be tested by mounting one of the exported filesystems on the client.

Similar Documents

Free Essay

Linux Essay

...File sharing through the network is just as easy as saving a file to a floppy disk, flash drive, or CD-ROM. You can send the file over a network connection, instead of saving the file to a storage device and personally hand delivering it, or sending it. Some file transferring such as email, have limited space for file sharing. You can use multiple different ways of transferring files. File transfers such as (P2P) known as peer to peer act as a client, and server. (P2P) allows larger transfers of file sharing, but does not use a central server. File sharing helps administration because, you can still have the security of the file that may be needed for business, or personal needs. Storing files in a central server allows only clients with permissions of the file. Files can be encrypted to protect information, and you have to have a password to access the content of the file. File sharing is better than using an external device since, external devices can be lost, or stolen. Sharing a file through a network allows the encryption to protect the permissions of the file, and only clients eligible of the content can see it. A good example of having file sharing instead of an external device is, when you have a extended business that needs to reach out to other owned locations. Instead of spending more money for external devices to be sent through the mail, which takes time and the package may not ever make it to the destination. Why not send the information through the network...

Words: 486 - Pages: 2

Free Essay

History on Nfs

...The first network file system—called File Access Listener—was developed in 1976 by Digital Equipment Corporation (DEC). An implementation of the Data Access Protocol (DAP), it was part of the DECnet suite of protocols. Like TCP/IP, DEC published protocol specifications for its networking protocols, which included the DAP. NFS was the first modern network file system (built over the IP protocol). It began as an experimental file system developed in-house at Sun Microsystems in the early 1980s. Given the popularity of the approach, the NFS protocol was documented as a Request for Comments (RFC) specification and evolved into what is known as NFSv2. As a standard, NFS grew quickly because of its ability to interoperate with other clients and servers. The standard continued to evolve into NFSv3, defined by RFC 1813. This iteration of the protocol was much more scalable than previous versions, supporting large files (larger than 2GB), asynchronous writes, and TCP as the transport protocol, paving the way for file systems over wide area networks. In 2000, RFC 3010 (revised by RFC 3530) brought NFS into the enterprise setting. Sun introduced NFSv4 with strong security along with a stateful protocol (prior versions of NFS were stateless). Today, NFS exists as version 4.1 (as defined by RFC 5661), which adds protocol support for parallel access across distributed servers (called the pNFS extension). The timeline of NFS, including the specific RFCs that document its behavior, is shown...

Words: 1317 - Pages: 6

Free Essay

Project Part 2 Task 1

...Secure File Storage Server Scenario There is a requirement to read customer confidential data located in the local area network (LAN) of First World Bank Savings and Loan. The organization needs to deliver highly confidential customer data in Portable Document Format (PDF) format for its online customers. This data is typically uploaded to a Linux file server by the bank employees within the LAN. However, online customers need to have access to their particular data. At the same time, the customers should not be able to modify the data. Tasks You need to: Design a file storage server architecture for the proposed Web-based infrastructure to support customers. Describe specifically how data can be shared with the Web server in a secure fashion. Submission Requirements Format: Microsoft Word Font: Arial, Size 12, Double-Space Citation Style: Chicago Manual of Style Length: 1–2 pages Due By: Unit 5 Self-Assessment Checklist I have explained how a Linux server can read data from a secure server in the local network. I was able to understand Linux filesystem mounting options. I have recommended an appropriate network sharing service. In the scenario that there is a requirement to read customer data that is confidential located in the local area network (LAN) of First World Bank Savings and Loan, & at the same time, online customers need to have access to their data but not be able to modify the data. This is accomplished by the design of the file server...

Words: 574 - Pages: 3

Premium Essay

Creatimg a Network Solution

...when creating their network solutions and end up exhausting their network resources. The increase in the data capacities of the electronic components used in today business world has led to the demand for a more convenient storage type. The ability to use a file server to store files has led to companies deploying large centralized NFS servers which are accessed by thousands of clients. Central file servers are seen as the basic solution to demands put forward. A file server is in basic terms a workstation or a personal computer hardware running on a network operating system (NOS).The NOS in this case boasts file sharing capabilities. The hard drives installed in the computers are used to provide the required storage space ranging from gigabytes to terabytes of memory space depending on the size of business. Many business owners are not justified by the use of a fully general-purpose computer as a server for simple storage services. This factor brought to the development of the network attached storage (NAS). NAS creates a system that is specifically designed for data storage unlike the traditional file server approach.NAS design begins with the basic components needed for a file server. Just like the traditional file server system, NAS follows the client/server design approach. In its design a single device hard ware called the NAS box is used to act as an interface between the network clients and the NAS. Unlike the...

Words: 1467 - Pages: 6

Free Essay

Nt1430W5Essay

...NT1430 NFS NFS is an open standard, cross-platform file system utility with implementations available for a wide range of operating systems, architectures, platforms, and appliances, from embedded systems to mainframes and high-performance clusters. NFS provides file sharing for Unix, Linux, mainframes, and other file systems, including Mac OS X. A Network File System (NFS) allows remote hosts to mount file systems over a network and interact with those file systems as though they are mounted locally. This enables system administrators to consolidate resources onto centralized servers on the network. Currently, there are three versions of NFS. NFS version 2 (NFSv2) is older and is widely supported. NFS version 3 (NFSv3) has more features, including 64bit file handles, Safe Async writes and more robust error handling. NFS version 4 (NFSv4) works through firewalls and on the Internet, no longer requires portmapper, supports ACLs, and utilizes stateful operations. Red Hat Enterprise Linux supports NFSv2, NFSv3, and NFSv4 clients, and when mounting a file system via NFS, Red Hat Enterprise Linux uses NFSv3 by default, if the server supports it. All versions of NFS can use Transmission Control Protocol (TCP) running over an IP network, with NFSv4 requiring it. NFSv2 and NFSv3 can use the User Datagram Protocol (UDP) running over an IP network to provide a stateless network connection between the client and server. When using NFSv2 or NFSv3 with UDP, the stateless UDP connection...

Words: 350 - Pages: 2

Free Essay

Project Part 2 - Executive Summary

...data but not modify it, and at the same time any information to be modified by authorized personnel. This data to be stored on the LAN of the First World Bank Savings and Loan. First it is listed the there should be some sort of Anti-virus/Anti-malware that runs with the solutions and services on the Linux network. This provides multi-layered security for the servers, and at the same time, protects the file system in real-time. This allows users to view the data without manipulating it. The Second is the recommended network sharing service. Network File Service (NFS) is recommened where access is through Secure Socket Layer (SSL). NFS allows the mounting of file systems on remote computers, & access to them. The client or accessing computer would just need to be running NFS client which is compatible with the NFS server. This is done with the mount points, and after the share or file, is mounted, all I/O operations are written back to the server. All clients then notice the change instantaneously, as if it was on the local filesystem. Lastly it is recommended to use NFS with access to the LAN via SSL. The encryption that is used will make sure that the data is not compromised and is kept within the C-I-A...

Words: 251 - Pages: 2

Premium Essay

Unit 4 Summray

...1. Computing Wireless / Networking ------------------------------------------------- Top of Form Search Bottom of Form * Wireless / Networking Categories * Networking Basics * Wi-Fi Wireless * TCP/IP Networking * Internet Connections * Proxy Servers / Lists * Home Networking * VPN and Virtualization * P2P File Sharing * Network Hardware * Windows Networking * Mac OS + iOS Networking * Network Design / IT * Bluetooth Wireless * VoIP - Voice Over IP * Free Practice Tests * Fundamentals Most Popular * What Is Computer Networking? * Introduction to Area Networks * What Is a Network Router? * What Is an Ethernet Card? * Useful Facts About How Wi-Fi Works * Internet Connection Alternatives for Home Networks * More » * Get Connected Most Popular * What Is Computer Networking? * Introduction to Area Networks * What Is a Network Router? * What Is an Ethernet Card? * Useful Facts About How Wi-Fi Works * Internet Connection Alternatives for Home Networks * More » * Uses and Upgrades Most Popular * What Is Computer Networking? * Introduction to Area Networks * What Is a Network Router? * What Is an Ethernet Card? * Useful Facts About How Wi-Fi Works * Internet Connection Alternatives for Home Networks * More » ...

Words: 983 - Pages: 4

Free Essay

Linux Unit 5

...First, let us analyze what file sharing in a centralized storage area on a server means. It means that basically when you store a file it will be stored in a predetermined place on a server instead of on the system. Now let us analyze what file replication is. File replication would be the server backing up by replicating to another server. Both of these are extremely helpful services provided by servers. How are these beneficial services increasing the ease of administration? Well, all of the different users will be storing their work to the server. That means they can login and access their files from any workstation on the local network. So I have come up with some examples showing different scenarios where this would be helpful. Example 1: As a student, if all of your files were being stored on a server you could login from any computer and access your files allowing for great mobility. Example 2: This one isn’t about a local network but I felt it was a great example anyway. When your access your e-mails they are stored on a server. Allowing you to login from anywhere and access the mail. Also, you can send yourself attachments so that you can access them at any time from any place. Example 3: Say you work in a lab and you want to do an experiment. You could search the server to find helpful information from other people’s work that is being shared. All of these examples benefit from replication as well. These servers replicating which would be backing up to the other servers...

Words: 492 - Pages: 2

Free Essay

Redhat

...engage students in task-focused activities, labbased knowledge checks, and facilitative discussions to ensure maximum skill transfer and retention. In addition, GUI-based tools will be featured to build on the students' existing technical knowledge, while key command line concepts will be introduced to provide a foundation for students planning to become fulltime Linux system administrators. By the end of the five-day course, students will be able to perform installation, establish network connectivity, manage physical storage, and perform basic security administration. LINUX-6 Course Outline Unit 1: Get Started with the GNOME Graphical Desktop Objective: Get started with GNOME and edit text files with gedit Unit 2: Manage Files Graphically with Nautilus Objective: Manage files graphically and access remote systems with Nautilus Unit 3: Get Help in a Graphical Environment Objective: Access documentation, both locally and online Unit 4: Configure Local Services Objective: Configure the date and time and configure a printer Unit 5: Manage Physical Storage I Objective: Understand basic disk concepts and manage system disks Unit 6: Manage Logical Volumes Objective: Understand logical volume concepts and manage logical volumes Unit 7: Monitor System Resources Objective: Manage CPU, memory, and disk utilization Unit 8: Manage System Software Objective: Manage system software locally and using Red Hat Network (RHN) Unit 9: Get Started with Bash Objective: Understand basic shell...

Words: 1463 - Pages: 6

Free Essay

It302 Final Project

...CH 22 1. Sharing, remote storage, reduce the work load of administrator. 2. # mount bravo:/home /bravo. Home # mount 192.168.1.1:/home /bravo.home # umount /home 3. The showmount command can be used to display a list of directory hierarchies that a server is exporting. 4. $ mount | grep nfs 5. It contains information about major file systems in the system. And it is located in the /etc directory. 6. /opt *.example.com(ro,sync) 7. NFS attribute caching can cause inconsistencies when large numbers of client nodes are asked to access files that have been updated recently and the attribute caching data on the client has not expired. Disabling attribute caching eliminates the problem but may degrade performance for frequent file operations requiring file attribute data. 8. The root_squash option maps root to nfsnobody; all_squash maps all users to nfsnobody. 9. The option requires that the requests originate on an internet port less than 1024. 10. Because it has no disk space, a diskless workstation has no swap space. The only choice is to use NFS. If it did not use NFS for swap space, the workstation would be limited by the amount of its physical memory. 11. Because it resides on the lan and file data and user id values appear unencrypted. 12. The nosuid option forces setuid executable in the mounted directory hierarchy to run with regular permissions on the local system. CH 23 1. smdb, nmbd 2. Set the username map parameter...

Words: 806 - Pages: 4

Free Essay

Comparative Operating Systems

...OPERATING SYSTEMS BY MUKUNDAN SRIDHARAN COMPARISON OF NETWORK OPERATING SYSTEM S Abstract We are in a era of computing in which networking and distributed computing is the norm and not a exception. The ability of a operating system to support networking has become crucial for its survival in the market. In today’s picture there is no operating system, which doesn’t support networking. This paper tries to give a review of various network operating systems or the networking support of a operating system, in relevance to the modern operating systems. The emphasis is on basic design and architecture, not their specifications or services. The paper considers various operating systems like Novell Netware, the sun NFS, the Styx, CIFS/SMB and Microsoft Windows 2000 server. Again the concentration is on modern and evolving operating systems like the Novell Netware and Microsoft’s Windows 2000. The objective of the paper is to study and compare various operating systems and to bring out the inherent advantages and disadvantages in using them. 1.0 INTRODUCTION Individual computers are connected together to form computer networks. The operating system, protocols and services which help us in interconnecting the computers are collectively called Network Operating systems. The webopedia.com defines Network Operating Systems as follows: An operating system that includes special functions for connecting computers and Devices into a local-area network (LAN)...

Words: 12519 - Pages: 51

Free Essay

Memory Management

...File Management Requirements Alan McKinney POS/355 May, 19 2014 Ellis Hodgdon This paper will discuss the protection that is within the UNIX operating system in regards to naming, file sharing and the importance of allowing permissions to users for accessing files. One topic in particular will be discussed in this paper and that will be the ability to allow access of one file to multiple end users while other users will be restricted from gaining access to the same file. Having the ability to control who has access and who doesn’t is very important to a company. The reason for this is that it allows a company to protect data from users who should not have access or data being released to the public from users that shouldn’t have access. This is important as this can ruin a company’s image. The following scenario will help to provide a way to maintain proper file management up to 4,990end users. When giving permissions to end users it is important to know who will need access and who does not, this could mean specific people or groups. Having an open access scheme for end users could mean loss of data, data being access and misused by those who are not knowledgeable or properly trained. The Unix file system provides sharing and protection of files by using a protection scheme that is made up of file, owner and group access rights (Silberschatz, Galvin, & Gagne, 2012, ). This means that the person that created or that has...

Words: 733 - Pages: 3

Premium Essay

Labs

...Unit 1 None Unit 2 Search and explore the ITT Tech Virtual Library for resources on the Linux Filesystem. Use the following keywords and phrases to help you locate appropriate resources: ext file system Linux hierarchical file system Linux standards base Linux directory structure Unit 3 Search and explore the ITT Tech Virtual Library for resources on bash. Use the following keywords and phrases to help you locate appropriate resources: bash scripts bash history bourne shell bourne again shell commands in Linux Unit 4 Search and explore in the following places. Find resources that help you understand how CUPS is used for printer management. Submit one resource from the ITT Tech Virtual Library and one from the Chapter 14 suggested resources. ITT Tech Virtual Library The More Information section of textbook Chapter 14, page 561 Use the following keywords and phrases to help you locate appropriate resources: CUPS server CUPS in Linux Linux printer configuration Fedora 15 printer server Unit 5 Search and explore in the following places. Find resources that help you understand mail services in Linux. ITT Tech Virtual Library The More Information section of textbook Chapter 20, page 732 Use the following keywords and phrases to help you locate appropriate resources: Send mail configuration SMTP in Linux Dovecot Email servers in Linux Fedora 15 email server Unit 6 Search and explore the ITT Tech Virtual Library for information on the...

Words: 467 - Pages: 2

Free Essay

Network Attached Storage System

...and is expected to sustain annual growth of at least 60%. Secondary storage has a healthy place in future computer systems. While many storage products are directly attached to personal computers, most disk array products (65% and rising) are deployed in local area network file servers. This centralization of storage resources enables effective sharing, better administrative control and less redundancy. However, it also increases dependence on network and file server performance. With the emergence of high-performance cluster systems based on commodity personal computers and scalable network switching, rapidly increasing demands on storage performance are anticipated. Specifically, storage performance must cost-effectively scale with customer investments in client processors, network links and storage capacity. Unfortunately, current distributed file system architectures severely limit scalable storage. In current distributed file systems, all storage bytes are copied through file server machines between peripheral buses (typically SCSI) and client LANs. In essence, these file server machines act as application-level inter-network routers, converting namespaces (disk block versus file range) and protocol layers (SCSI versus RPC/UDP/IP). This is a critical limitation for cost-effective scalable storage. Specifically, the sustained bandwidth of storage devices is rapidly outstripping installed interconnection technologies and rendering storeand-forward servers...

Words: 1229 - Pages: 5

Premium Essay

This Is Not a Test

...created your kernel source code backup.) * chmod - options to recursively change user, group and other permissions on files/directories * chown - options to recursively change file and directory user ownership * chgrp - options to recursively change file and directory group ownership * kill - superkill vs sending other signals to a process * ps - options to list all running processes on a Linux/Gnu system * top – Interactive Linux Tasks Status Display * grep - know how to use to find specific lines of info in output/files (you should have learned about this command in Intro to Unix/Linux Systems.) Shell expansion characters - be able to respond to questions regarding usage of '*' - asterisk, all files or all matching strings '?' - question mark, single character  What are the components of a Linux distribution? * Kernel * Desktop Environment * System Libraries * System Tools * Developmental Tools * File Structure Popular Distributions:  * Redhat,  * CentOS * Fedora  * Suse * Debian * Ubuntus What sort of hardware architecture can Linux be installed on? * Intel-x86 systems * Embedded systems From what sources can Linux be installed? * CD- ROM * Hard Disk * Floopy Disk * USB * Network Installation * ftp * http * nfs Who created the Linux Kernel? What does open source mean? Where is the kernel stored on a CentOS distro (/boot), What...

Words: 4587 - Pages: 19