Mount Windows Share On Centos
simple way
1. install samba client and cifs-utils
make sure that there is no space between username and password
second way more secure
1. create file credential which contain username and password
For path with "space", write like this
1. install samba client and cifs-utils
yum install samba-client
yum install cifs-utils
2. to mountmount -t cifs -o username=admin,password=yourpassword
//10.100.159.159/public /mnt/usb
mean that you want to mount //10.100.159.159/public folder to
local dir /mnt/usb with username andd password the 10.100.159.159 is
admin and passwordmake sure that there is no space between username and password
username=admin,password=yourpassword
//no space between "admin,password"
second way more secure
1. create file credential which contain username and password
vi /home/cred.txt
//this file contain
username=admin
password=yourpassword
2. To mountmount -t cifs //10.100.159.159/public /mnt/usb
-o credentials=/home/cred.txt
NoteFor path with "space", write like this
//10.100.159.66/File\ server\ DSP //if windows path = \\10.100.159.159\File server DSP
No comments