* We need to create a credential file to mount on startup:
<code>sudo nano /root/.smbcredentials</code>
*Add the following lines. You must change NAS_username and NAS_password to the correct user name and password for the NAS to connect to:
* Now, change the permissions of the file so only root can read and edit it:
sudo chmod 700 /root/.smbcredentials
* Let's back up our fstab: sudo cp /etc/fstab /etc/fstab_old** If needed you may return to the original this way: sudo mv /etc/fstab_old /etc/fstab
* Now we edit fstab:
sudo nano /etc/fstab
* Add this line at the end:
* Finally, test your settings to make sure they work:
sudo mount -a