Samba
Not just for file sharing, but also supports printing and name services. I now make it part of my standard Linux builds within Virtual Box. I can then use VB shared folders or the host OS virtual file systems. (Is this true for Mac OS? Need to test it).
Ubuntu
Some useful links,
Raspbian
And now I need it on my little pi. Check this out!
I can now mount the NAS drive on the PI, but I need to mount it on a partition, check out clonezilla.
Using a credentials file
Here’s a link on credentials files,
And here’s a LMGTFY on “Linux Samba”