How to Mount Windows Share in Linux using CIFS

Mount Windows Share in Linux.| Common Internet File System(CISF) is file sharing network protocol mainly used to provide shared access to files, printers, serial ports, and miscellaneous communications between nodes on a network. You can easily access CIFS share from Linux and mount them as a regular filesystem.

Steps to Mount Windows Share in Linux.

Examples:- 

mount -t cifs //server-name/share-name /mnt/cifs -o username=shareuser,password=sharepassword,domain=xxxx.com

mount -t cifs -o username=shareuser,password=sharepassword //server-name/share-name /mnt/cifs

To make the mount persistant across reboots, make the below entry to the /etc/fstab

//server-name/share-name /mnt/cifs cifs  _netdev,username=<share user>,password=<share 

password>,dir_mode=0755,file_mode=0755,uid=500,gid=500 0 0


Useful Posts:-

How to add route in Linux in best way. 

How to delete route in linux.

How to Mount CIFS Shares from Windows Command Line?

Leave a Comment