I encountered a segfault in Samba seemingly caused by permission errors, then I made it go away.