1,575
edits
Changes
no edit summary
###add the following lines <pre>username=theusername password=thepassword workgroup=theworkgroup</pre>
###Exit nano and save your changes by hitting '''Ctrl-X''' and then '''Y'''
###run <pre>chmod 600 /root/.credentials/my-credentials</pre>
##create the target mount folder by running <pre>mkdir /mnt/netfolder</pre>
##Add a line to your fstab file to mount the network share by running <pre>nano /etc/fstab</pre> and adding the following line to the bottom <pre>//net/path/to/netfolder /mnt/netfolder cifs user,credentials=/root/.credentials/my-credentials,iocharset=utf8,noperm 0 0</pre>