Do you have an old copy of smbstatus lying around your system? Does smbstatus work with a simpler set up, say, with no include statements? Does the directory %L (a real user name) exist? Maybe put quotes around %L. Joel