Skip to content

Instantly share code, notes, and snippets.

@harderthan
Created April 4, 2018 02:03
Show Gist options
  • Save harderthan/e2a6d2956acac27e3f33f98d6e4e37e9 to your computer and use it in GitHub Desktop.
Save harderthan/e2a6d2956acac27e3f33f98d6e4e37e9 to your computer and use it in GitHub Desktop.
Mount a Nas directory on ubuntu
export nas_path=$1
export username=$2
export password=$3
export target_path=$4
sudo mount -t cifs $nas_path -o username=$username,password=$password,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755,uid=1000,gid=1000,ver=1.0 $target_path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment