Networking

Hardware

Software

Consultation

 
List Default Samba Values  
 

Sometimes it would be nice to know the default values for your version of Samba, well it's easier than you think.
Backup your current smb.conf file:

mv /etc/samba/smb.conf{,.BU}

Create a new, empty, smb.conf file.

touch /etc/samba/smb.conf

and place the testparm output into smb.conf.defaults.

testparm -sv > /etc/samba/smb.conf.defaults

Move your old smb.conf file back into use

mv /etc/samba/smb.conf{.BU,}

Open the file to view the parameters at your leisure.

 
 
 
List Dovecot Default Values  
 

To get a detailed list of defaults for Dovecot, simply create a file with the minimal configuration, it can be named whatever you like, but must contain:

auth default {
}

Ours is named 'minimal.conf'; therefore, while in the same directory as your new file, to get the list you simply:

dovecot -a -c minimal.conf

However, this may be a bit unweildy, so narrowing it down with a pipe to grep will help, as in:

dovecot -a -c minimal.conf | grep myhostname
 
 
 
List Dovecot NON-Default Values  
 

To get a list parameters that have been changed, simply:

dovecot -n

Again, you can narrow down the list by piping to grep, as in:

dovecot -n | grep myhostname
 
 
StartPrev12345678910NextEnd

Page 8 of 15