Zentyal Forum, Linux Small Business Server

Zentyal Server => Installation and Upgrades => Topic started by: Maarten on April 03, 2008, 10:39:56 pm

Title: How to make changes in smb.conf
Post by: Maarten on April 03, 2008, 10:39:56 pm
Hi,

I want to be able to make changes to some configuration files (for example the samba config) but when I restart the service the changes are overwritten. Does anyone know a simple solution?

Thanks!
Maarten
Title: Re: How to make changes in smb.conf
Post by: sixstone on April 04, 2008, 09:14:01 am
Hi Maarten,

The way to modify any service configuration file is editing the template associated to that configuration file. In particular, the smb.conf template is placed at /usr/share/ebox/stubs/samba/smb.conf.mas.

Best regards,
Title: Re: How to make changes in smb.conf
Post by: Maarten on April 04, 2008, 10:51:27 am
Thanks I had to make changes to block some ip's. Besides that I need to make some permanent changes to my network configuration file but that seems a bit harder. I think I will continue to do that manually.

Thank you!
Title: Re: How to make changes in smb.conf
Post by: sixstone on April 05, 2008, 03:04:20 pm
Quote
I had to make changes to block some ip's.
Why don't you block those IP addresses using the firewall?

Quote
Besides that I need to make some permanent changes to my network configuration file but that seems a bit harder.
Do those changes imply something that eBox is not able to do?

Thanks for your feedback!
Title: Re: How to make changes in smb.conf
Post by: Maarten on April 05, 2008, 03:57:00 pm
Thanks for you reply. I said it unclearly I want to block all ip's except internal and some external. That worked perfectly with the template!

The network changes are the changes that resulted from my problem with making external connections. See http://forum.eboxplatform.com/index.php?topic=98.0

For that problem I have to change the network interfaces file according to the changes suggested in the debian forum

Code: [Select]
Try w/o those last two lines about nameservers.

Normally all you need for static ip is the address and netmask, especially when using a router, which handles all the other stuff.

Also, try replacing auto eth0 with allow-hotplug eth0

Also, your router has to be configured to allow static ip assignment. Some routers are cranky about this


and after that ifdown eth0
ifup eth0 evrything worked

I have not had the time yet to figure out what file to use and if the changes are easy to apply.