Networking :: Samba Server
smbd & nmbd need to be exectued as root. You ned to put:
sudo smbd start &
sudo nmbd start &
in your bootlocal.sh or .xinitrc file
bootlocal.sh gets executed with root privileges on system wide startup (so you wont need sudo there)
.xinitrc is on a user basis for X startup, but should be used only for X apps (see .bash* instead)
original here.