Dear Mr. Nadjari,

The file "/etc/samba/smb.conf" is overwritten every time that the
samba module is restarted so it's not an option.
The file "/usr/share/ebox/stubs/samba/smb.conf.mas" is a bit better,
as it only gets overwritten on package upgrades, but still not the
best option.

Since a few versions ago, eBox support hooks, you can create a file
called "/etc/ebox/hooks/samba.postsetconf" that will be executed after
writing the configuration files with samba. In this script you can
alter the contents of the samba configuration files, using 'sed' or
concatenating content to the file with 'cat', replacing completely the
content of the file with 'cp' or you can even write the script in any
programming language you want and do the desired changes in the
configuration.

You can find more information about the hooks in the documentation:
http://doc.ebox-platform.com/en/develop.html#service-advanced-customization

Best regards,
-- 
Isaac Clerencia - Developer
[email protected]

eBox - Computer Networks Made Easy!
eBox Technologies at www.ebox-technologies.com
Download eBox at www.ebox-platform.com
_______________________________________________
ebox-user mailing list
[email protected]
http://lists.ebox-platform.com/cgi-bin/mailman/listinfo/ebox-user

Reply via email to