ubuntu:samba:verify_samba_configuration_settings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:samba:verify_samba_configuration_settings [2020/07/15 09:30] – external edit 127.0.0.1 | ubuntu:samba:verify_samba_configuration_settings [2023/06/09 16:45] (current) – peter | ||
---|---|---|---|
Line 3: | Line 3: | ||
Because Samba uses an extremely large amount of parameters in smb.conf, developers have provided a command line tool for verifying the syntax of a configuration file. | Because Samba uses an extremely large amount of parameters in smb.conf, developers have provided a command line tool for verifying the syntax of a configuration file. | ||
- | The utility, named testparm. | + | This utility |
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
- | It is being mentioned here again so that we do not overlook simple smb.conf errors when hunting for the source of a problem. | ||
<code bash> | <code bash> | ||
Line 11: | Line 14: | ||
</ | </ | ||
- | **NOTE**: | + | ---- |
+ | |||
+ | ===== Test a specific | ||
It is a good idea to run the check on a new configuration file before putting it into production. | It is a good idea to run the check on a new configuration file before putting it into production. | ||
+ | |||
+ | * Specific a specific configuration file by using the **-s** option. | ||
<code bash> | <code bash> | ||
Line 19: | Line 26: | ||
</ | </ | ||
- | result: | + | returns: |
<code bash> | <code bash> | ||
Line 34: | Line 41: | ||
- | After reviewing the specified configuration file, testparm continues to print a version of smb.conf that contains all parameter values, including default ones. This can help to verify that smbd and nmbd are using the values that you expect. | + | <WRAP info> |
+ | **NOTE: | ||
+ | |||
+ | * This can help to verify that smbd and nmbd are using the values that you expect. | ||
+ | |||
+ | </ | ||
ubuntu/samba/verify_samba_configuration_settings.1594805433.txt.gz · Last modified: 2020/07/15 09:30 by 127.0.0.1