NFS: Network file system: /etc/exports

/nfsshare 192.168.1.0/24(rw,no_root_squash,sync)

no_root_squash: Allows root account on client to access export share on server as the root account.

all_squash: Forces all connecting users to “nobody” account and permissions.

Anonuid: Forces all anonymous connections to predefined UID on server

showmount -e : Shows the available shares on your local machine

exportfs -v : Displays a list of shares files and options on a server

exportfs -r : Refresh the server’s list after modifying /etc/exports

In client machine, for seeing the shared folders of a server

showmount -e 192.168.0.100

For mounting in clien machine

mount -t nfs 192.168.0.100:/nfsshare /mnt/nfsshare

We can also add the entry in fstab in client machine.

192.168.0.100:/nfsshare /mnt nfs defauls 0 0

Since NFS is a RPC (Remote procedure call) based service, we need to start rbcbind service to work NFS fuctionally. Also NFS use 2049 port no, so rcpbind will listen to that port.

We can check by issuing below command

rpcinfo -p | grep nfs

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s