nano /etc/fstab
* Add this line at the end(all in one line):
//server/share /var/hda/files/music cifs credentials=/root
/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
* If the share name has spaces, escape them with \040, e.g.
//server/My\040Documents/My\040Music
* Finally, test your settings to make sure they work:
mount -a