First of all need to install cifs on ubuntu:
$ sudo apt-get install cifs-utils
After successful installation, we can mount windows share from command line:
$ sudo mount //WINSRV/SHARE -t cifs -o uid=1000,gid=1000,username=winuser /mnt/path
where ‘winuser’ is the windows domain user, and optionally we can supply domain using domain=windomain with options.
to find out linux user’s uid and gid use: