linux_cifs_mount
How to mount CIFS share in Linux
First start by installing the CIFS Utilities:
sudo apt install cifs-utils
Once complete the following command can be used to mount a share:
sudo mount -t cifs -o credentials=/root/.smb //amzfsxbfcprd.d04.tes.local/ReportBundle
In the above example credentials are stored in the location: /root/.smb
This file looks as follows:
username=user password=password domain=domain''
To create a persistent mount open up the following file: /etc/fstab
Add the following line at the bottom of the file:
//amznfsxc26x4t6k.d04.tes.local/ReportBundle /sapmnt/PB4/interface/fromECTOR/IN cifs uid=5000,gid=5001,credentials=/root/.smb,file_mode=0777,dir_mode=0777,iocharset=utf8,vers=3.0
linux_cifs_mount.txt · Last modified: by 127.0.0.1
