script to mount smb drives over a network

Categories: Linux, Script

case $1 in
      mount -t smbfs -o fmask=777,dmask=777,username=xxx,password=xxx //ip addy/folder /mount location
      umount /mount location
   *) echo "usage: $0 <start|stop>"

usage: ./script start|stop

this script also works well when using hamachi in linux – just have to change ip addy to the system (hamachi) assigned ip address of the file server to connect to.


    Leave a Reply

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