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

Keywords:

  • www saniya com
  • ubuntu 11 mount windows share
  • mount -t cifs ubuntu

Leave a Reply

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