Mount Windows Share Folder on Ubuntu

Below is shell script to load Windows’ folder share using Ubuntu 10.10:

#!/bin/bash
umount /var/www/vhosts/saniya/id-ebook.com/httpdocs/gudang
umount /var/www/vhosts/saniya/id-ebook.com/httpdocs/gudang2
mount.cifs \\\\ubuntu-pc\\z\\gudang /var/www/vhosts/saniya/id-ebook.com/httpdocs/gudang -o uid=www-data,gid=0,user=ubuntu,pass=xxx,rw
mount.cifs \\\\ubuntu-pc\\z\\gudang2 /var/www/vhosts/saniya/id-ebook.com/httpdocs/gudang2 -o uid=www-data,gid=0,user=ubuntu,pass=xxx,rw

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.