Mount cif share as user

On Ubuntu you need the cifs-utils

apt-get install cifs-utils

Add the share to the /etc/fstab

// /mount/share cifs username=john,domain=contoso,noauto,rw,users 0 0

set the correct rights for the local user to the mount share.

sudo mkdir /mount/share
sudo chown -R john:john contoso
sudo chmod -R 774 contoso

Mount the share with mount.cifs

mount.cifs  // /mount/share 

DonĀ“t use mount -t cifs

read more here