How to Mount Windows Shared Directory in Linux using CFIS
In this article we will learn how you can access windows shared folder/directory from a Linux Box
Command Syntax:
#mount -t (type) cifs username=serverusername,password=serverpassword //shared file server IP and folder path /mount point.
i.e
[root@TecGeeks~]# mount -t cifs -o username=rahul,password=TecGeeks@123 //192.168.0.2/my-data$ /opt/data
Mount permanently, make below entry on /etc/fstab
Syntax:
//shared file location /mount point cifs (file type) username=serverusername,password=server password,file and folder permission
//192.168.0.2/my-data$ /opt/data cifs username=rahul,password=TecGeeks@123,dir_mode=0777,file_mode=0777 defaults 0 0
Command Syntax:
#mount -t (type) cifs username=serverusername,password=serverpassword //shared file server IP and folder path /mount point.
i.e
[root@TecGeeks~]# mount -t cifs -o username=rahul,password=TecGeeks@123 //192.168.0.2/my-data$ /opt/data
Mount permanently, make below entry on /etc/fstab
Syntax:
//shared file location /mount point cifs (file type) username=serverusername,password=server password,file and folder permission
//192.168.0.2/my-data$ /opt/data cifs username=rahul,password=TecGeeks@123,dir_mode=0777,file_mode=0777 defaults 0 0
How to Mount Windows Shared Directory in Linux using CFIS
Reviewed by TecGeeks News
on
November 27, 2016
Rating:
No comments: