Author Topic: How to make changes in smb.conf  (Read 4286 times)

Maarten

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
How to make changes in smb.conf
« 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

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: How to make changes in smb.conf
« Reply #1 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,
My secret is my silence...

Maarten

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How to make changes in smb.conf
« Reply #2 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!

sixstone

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1417
  • Karma: +26/-0
    • View Profile
    • Sixstone's blog
Re: How to make changes in smb.conf
« Reply #3 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!
My secret is my silence...

Maarten

  • Zen Apprentice
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: How to make changes in smb.conf
« Reply #4 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.