Category : Linux | 2195 views
Ever wonder on how to mount using mount.cifs. This is dinosaur tech but I am putting it here anyway.
Act I. Get and create your credentials file
Get the correct credentials from the shared drive and then do the following:
sudo echo -e "username=service" > /somedir/.somecredentials; sudo echo -e "password=p@ssw0rd" >> /somedir/.somecredentials
Act II. Mount the drive
First create a mount point for this new share under your linux system.
Then issue this command.
mount.cifs "//some_ip_address/mount_drive" /mnt/winshare -o credentials=/root/.somecredentials