Tuesday, January 17, 2017

Configure CIFS and NFS share




CIFS Configuration

Step 1) Install CIFS utilities (cifs-utils) and samba client (samba-client)

yum install cifs-utils samba-client

Step 2) List all samba server shares

smbclient –L <<Samba_Server_IP>>

Step 3) create the mount point and mount the file system

mkdir /mnt/smbshare
mount –t cifs –o username=sambauser //<<Samba_Server_IP>>/<<share_name>>  /mnt/smbshare

Step 4) make the mount persistent by adding an entry in /etc/fstab file

//<<Samba_Server_IP>>/<<share_name>>       /mnt/smbshare    cifs   username= sambauser,password=sambapasswd  0  0

Step 5) mount

mount –a






NFS Configuration

Step 1) Install NFS utilities

yum install nfs-utils

Step 2) Create a mount point and mount the file system

mkdir /mnt/nfsshare
mount –t nfs <<NFS_Server_IP>>:/nfsshare  /mnt/nfsshare


Step 3) Make the configuration persistent by adding the entry in /etc/fstab

<<NFS_Server_IP>>:/nfsshare      /mnt/nfsshare     nfs defaults   0  0

No comments:

Post a Comment