Header Ads

ad728
  • Breaking News

    Mount Windows Share On Centos

    simple way
    1. install samba client and cifs-utils
    yum install samba-client
    yum install cifs-utils
    
    2. to mount
    mount -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 password
    make 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 mount
    mount -t cifs //10.100.159.159/public /mnt/usb 
    -o credentials=/home/cred.txt
    
    Note
    For 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

    Post Top Ad

    ad728

    Post Bottom Ad

    ad728