I would really like to thank everyone who helped me with my preexec-problem. Your examples did it! It finally works. Thanks!!! Just to be curious. Why does not testparm give a warning if there are two preexec-commands present in one service (yes, I tried that before I asked you guys)?. If I understand this correctly it is only the first preexec command that smb takes notice of. Or is this a rtfm that I should get kicked for asking? Regards Robert ----------------------------------------------------------