Created
April 4, 2018 02:03
-
-
Save harderthan/e2a6d2956acac27e3f33f98d6e4e37e9 to your computer and use it in GitHub Desktop.
Mount a Nas directory on ubuntu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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