Koozali.org: home of the SME Server

disabling smb.conf template

Mark

disabling smb.conf template
« on: December 15, 2002, 09:03:22 PM »
Hi

I want to play with smb.conf to optimise samba for a database. I would prefer to edit the file manually. Is there an easy way of disabling the templating system just for this conf so I dont lose my changes on reboot etc. Not that I imagine it makes any difference but I'm using 5.6b7

cheers

Mark

guestHH

Re: disabling smb.conf template
« Reply #1 on: December 15, 2002, 09:30:58 PM »
Hi,

the /etc/smb.conf file is a result of the templating system. So if you want to play with it directly just do so. I would make a copy of this file to track my changes.

This way there is no need to disable the template system.

Practical solution :-)

Regards,
guestHH

stephen noble

Re: disabling smb.conf template
« Reply #2 on: December 16, 2002, 04:50:24 AM »
rename the template/samba.conf directory
BUT you have to know what your doing,
eg if you add another ibay you have to make manual changes

regards
stephen

Mark

Re: disabling smb.conf template
« Reply #3 on: December 16, 2002, 11:03:45 AM »
Thanks Guys for the help ....

I shifted the templates/smb.conf directory to /tmp and deleted the smb.conf files in /etc and etc/samba and now I can edit the new conf file to my hearts content.

cheers

Mark

Bill Talcott

Re: disabling smb.conf template
« Reply #4 on: December 16, 2002, 06:36:49 PM »
It would probably be easier to fix if you used the templates-custom directory. You could just make blank copies of all the template files in templates-custom, and add one fragment that contained the whole file you wanted to use. This would make a new smb.conf from your blank files instead of the defaults, plus whatever you had in your own fragment.