tested on: Linux Debian 3.16.0-4-686-pae #1 SMP Debian 3.16.7-ckt25-2+deb8u3 (2016-07-02) i686 GNU/Linux

#install software

#centos7
yum update && yum install samba-client samba-common cifs-utils

#debian
apt-get update && apt-get install cifs-utils

mkdir /mnt/cifs; # create mountpoint

mount -t cifs //FILE-SERVER-IP-ADDRESS/NAME_OF_SHARE /mnt/cifs --verbose -o user=nobody;
# mount windows share, you will be asked for password

mount -t cifs //FILE-SERVER-IP-ADDRESS/NAME_OF_SHARE /mnt/cifs --verbose -o user=nobody,password=secret;
# you won't be bothered entering a password

# another elaborate example:
sudo mount -t cifs -o username=otto,password=geheim,uid=1000,gid=1000,file_mode=0660,dir_mode=0770 //192.168.1.100/Tausch /media/austausch

# if host (older QNAP NAS) does not support smb 2.0
# and one needs to use (insecure! ETHERNAL BLUE!) smb 1.0
mount -t cifs -o vers=1.0,username=smbuser,password=smbpwd //192.168.1.100/sharename /run/media/user/mountpoint;

Related Links:

greetings from ethernal blue – linux cifs smb windows share mount fails with „mount error(112): host is down“ – no it is not

https://wiki.ubuntuusers.de/Samba_Client_cifs/

 

admin