Mount Windows Share on RHEL

In CLI

   mount -t cifs //ntserver/dir -o username=user,password=pass /mnt/ntserver   

In /etc/fstab

   //ntserver/dir   /mnt/ntserver   cifs   credentials=/root/.smbpasswd,file_mode=0777,dir_mode=0777   0   0

Then create a file /root/.smbpasswd  with permissions set to 600

   username=user

   password=pass

In /etc/hosts add IP address of ntserver.   

Similar Posts