At one time someone had posted instructions on installing Samba on a Kobo. Unfortunately, I'm not at all sure anyone has tried since then. See
https://www.mobileread.com/forums/sh...d.php?t=210646
As mentioned elsewhere you'll need an armhf build of samas as opposed to the armel build used here.