<code>sudo nano /root/.smbcredentials</code>
*Add the following lines:
(You must change hda_username NAS_username and hda_password NAS_password to the correct user name and password for the NAS to connect to): <code>username=NAS_username<\code><code>password=NAS_password<\code>
<code>
username=hda_username
password=hda_password
<\code>
* Save the file by hitting ctrl+x, type "y" to save the buffer, and <enter> to exit.