Hi Sandeep, > I see a initialization function for samba module(init_samba_module), but > not a exit function. I am opening a file in init function, where should I > close it. Just worrying on, If I do not close it, It may lead to some > inconsistencies. Samba never unloads modules, it just calls exit() or _exit(). metze