Samba persistent config changes

is there a way to make changes to smb.conf which survive reboot and service restart?

thanks in advance

If you are making changes to smb.conf from the command line for options that are not defined in the samba WUI page then if you go to the samba WUI page and press save, the smb.conf file will be overwritten by the contents defined in that WUI page.

So the simple answer to your question is no.

Any manual changes to the smb.conf file will be overwritten by a Samba WUI page save or a reboot.

If you have options that should be able to be available in the smb.conf file then those options would need to be added into the Samba WUI page.

The best way to achieve that is for someone with a vested interest in Samba to make and test out the changes in the Samba WUI code and then submit a patch to the development mailing list for review.

Another alternative would be to raise a bug with “improvement suggestion” in the title describing the change required and hopefully one of the developers might be using Samba and will pick that improvement up. Unfortunately the development team is not very large and they are very busy with other security and development issues on IPFire (and of course their day jobs to keep paying the bills), so that might take some time. That is why it would be good for someone new who has the ability to do the coding and testing etc would be willing to pick up ownership of this addon.

Links for building IPFire and sending patches Build Info

Links for IPFire bugzilla. Your IPFire People email address and password credentials will work for logging into IPFire Bugzilla.


Thanks Adolf

Copy your own smb.conf in


add these lines in your /etc/sysconfig/rc.local

# restart samba with my smb.conf
cp /var/ipfire/samba/smb.mine /var/ipfire/samba/smb.conf
/etc/rc.d/init.d/samba restart