How to modify smb4.conf and make it stick

Status
Not open for further replies.

silus

Cadet
Joined
Aug 6, 2015
Messages
3
Hello all,

I have been looking over and over for the answer to the following question and all I have found is people trying to skirt the issue by saying that if you can't change the parameter in the GUI then you should not be changing it.

I completely disagree with this point of view. I have used samba for well over 12 years and using the config to make changes is the way I prefer to go about most things. Just because the bulk of people might prefer the GUI does not mean that someone does not want to try something new out and play with parameters not available in the GUI.

I am trying to run some experiments in my test lab and every time I bounce the daemon, the config file is overwritten! I need to know how to make the changes to /usr/local/etc/smb4.conf and /etc/local/smb4.conf persist after the service is restarted.

Is there some database the active config is stored in? If so, how to I edit this file to take the changes I make and not be overwritten.

Thank you all for your time and assistance!

-Silus
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Hello all,

I have been looking over and over for the answer to the following question and all I have found is people trying to skirt the issue by saying that if you can't change the parameter in the GUI then you should not be changing it.

I completely disagree with this point of view. I have used samba for well over 12 years and using the config to make changes is the way I prefer to go about most things. Just because the bulk of people might prefer the GUI does not mean that someone does not want to try something new out and play with parameters not available in the GUI.

I am trying to run some experiments in my test lab and every time I bounce the daemon, the config file is overwritten! I need to know how to make the changes to /usr/local/etc/smb4.conf and /etc/local/smb4.conf persist after the service is restarted.

Is there some database the active config is stored in? If so, how to I edit this file to take the changes I make and not be overwritten.

Thank you all for your time and assistance!

-Silus
You make changes from the GUI. If you need to add a parameter that isn't covered in the GUI, put it in "auxiliary parameters". If it's a global parameter, put it in "services" -> "CIFS". It it's a share parameter, place it in your share config.
 

silus

Cadet
Joined
Aug 6, 2015
Messages
3
Thank you anodos! I was able to add my settings to the "auxiliary parameters" as you mentioned and performance has improved dramatically. I am now getting 65-70 MB/s. Still about 40-50 MB/s off of what I would expect for cifs performance with these parameters. This might just be the NIC though, I will have to put an intel NIC in and re-test.

Thanks again!
-Silus
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Thank you anodos! I was able to add my settings to the "auxiliary parameters" as you mentioned and performance has improved dramatically. I am now getting 65-70 MB/s. Still about 40-50 MB/s off of what I would expect for cifs performance with these parameters. This might just be the NIC though, I will have to put an intel NIC in and re-test.

Thanks again!
-Silus
Hmm something is wrong then, most people get 100MB/s without even trying.
 
Status
Not open for further replies.
Top