Search Engine

Loading

Sallar

Sallar
RedhatEnterpriseLinux Blog

Connecting & Mounting to the NFS Share Folders


Connecting to the NFS Share Folders
There are three ways to mount an NFS export on a client system, assuming the server has given the client permission to do so:
1.     Use the mount command along with the server name, exported directory, and local mount point.
2.     Add the export to /etc/fstab so it is automatically mounted at boot time or is Available to be mounted.
3.     Use the autofs service to mount the share when a user attempts to access it from a client.

Redhat Enterprise linux 5 NFS-Part3


Redhat Enterprise linux 5 NFS-Part2


Redhat Enterprise linux 5 NFS-Part1


Configuring the NFS Server on the Command Line



To configure a Red Hat Enterprise Linux system as an NFS server via the command line, make sure the nfs-utils RPM package is installed.
The server configuration file, /etc/exports, uses the following format:
shared_directory allowed_hosts(options)
where shared_directory is the name of the directory to be shared, allowed_hosts is the IP address range of the allowed clients, and options is a list of NFS options for the exported directory. Obviously, the exported directory must exist. You must be root to modify this file.

NFS and SELinux Configuration


NFS and SELinux
In Red Hat Enterprise Linux 5 & 6, NFS is protected by the default Security-Enhanced Linux (SELinux) policy, known as the targeted policy. By default, this targeted policy allows NFS connections to the server by setting the nfs_export_all_ro and nfs_export_all_rw SELinux booleans to 1.
If you are sharing home directories over NFS while using SELinux, you must set
use_nfs_home_dirs boolean to 1 on each client connecting to the NFS server sharing the home directories. Execute the following command as root:

What is NFS server


Network File Sharing
In an enterprise computing environment, it is common to share files between computers or allow several users to access the same set of files on a central server and have all changes be visible to all users immediately. In a pure UNIX environment, including those consisting solely of Red Hat Enterprise Linux systems, this can be achieved via Network File System (NFS). If sharing files between Red Hat Enterprise Linux and Microsoft Windows systems is desired, Samba can be used to achieve connectivity.

Powered by Blogger.

Ads

 
Copyright © Redhat Enterprise linux. Original Concept and Design by My Blogger Themes
My name is Abdul Razaq but people call me Raziq. Here is my home page: www.redhatenterpriselinux.blogspot.com I live in Quetta, Pakistan and work as an IT-Engineer.