Map the folder in Windows Server to Linux Server
Step1: Enable file sharing for the target folder
Please set up the permission and file sharing in Windows Server.
Step 2: Install CIFS-utils
Please install "CIFS-utils" in Linux Server.
# sudo apt install cifs-utils (For Ubuntu OS)
# yum install cifs-utils(For CentOS)
Step 3: Create a new directory and then mount the shared folder to it
# sudo mkdir /mnt/share (You could name the directory with any others.)
# sudo mount.cifs //Windows/SharedFolder /mnt/share -o user=account
1: Replace “Windows” with the IP address or hostname for your Windows PC and “SharedFolder” with your shared folder name. For the username, replace “account” with your Windows username. You will be asked to enter the password for the specific user.
2: It requires to open the port 445 in both servers. Otherwise the file sharing will be failure.
Step 4: Confirm if the shared folder is accessible
Article ID: 1935, Created: August 18, 2021 at 4:33 AM, Modified: May 16, 2022 at 12:37 AM