Thanks, drag, for taking the time to reply to my post in such detail. The discussion that you helped bring along is very informative.
However, it still doesn't let me compile samba in such a way that it would fit in 32MB of RAM. Yes, you told me that I don't really want to do that, but I'm stubborn kind of guy and I don't see why samba should take several orders of magnitude more code than ftp when all I want it to do is essentially the same. I know that samba can do much more than that, but file sharing with moderate security will be quite enough for my needs. Thank you.
Mind you, I'm not complaining to the samba developers. They scatched their itch. And by doing that they provided everybody with a very good implementation of the CIFS protocol as spoken by Windows. I was just expressing my hope that with the addition of yet another layer of services, it would become more obvious that even with samba, one size does not fit all requirements.
Thanks for pointing out the Sheevaplug. It might turn out that just throwing more horsepower at the problem might be preferrable to cutting down samba in a sane way.