YouTip LogoYouTip

Linux Comm Testparm

# Linux testparm Command [![Image 3: Linux Command Manual](#) Linux Command Manual](#) The Linux testparm command is used to test whether the Samba settings are correct. Executing the testparm (test parameter) command can simply test the Samba configuration file. If the test results are correct, the Samba daemon service can correctly load the configuration values, but it does not guarantee that subsequent operations will proceed as expected. ### Syntax testparm [] **Parameter Description**: * -s Do not display the prompt waiting for the user to press the Enter key; directly list the Samba service definition information. ### Example View Samba configuration # testparm Load smb config files from /etc/samba/smb.conf Processing section ''Processing section ''Processing section ''Processing section ''Loaded services file OK.Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions ///Press Enter to continue# Global parameters workgroup = MYGROUP server string = Samba Server security = SHARE encrypt passwords = No password server = None log file = /var/log/samba/%m.log max log size = 50 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = /etc/printcap dns proxy = No idmap uid = 16777216-33554431 idmap gid = 16777216-33554431 cups options = raw comment = Home Directories read only = No browseable = No comment = All Printers path = /var/spool/samba printable = Yes browseable = No comment = * path = /home/uptech read only = No guest ok = Yes comment = * path = /home read only = No guest ok = Yes [![Image 4: Linux Command Manual](#) Linux Command Manual](#)
← Linux Comm SmbclientLinux Comm Smbd β†’