How To Check Samba Configuration Is Correct?

RegisterLogin
How To Check Samba Configuration Is Correct?
Post Description: i have a samba server running on my linux server and its not working correctly, how can i check if its working properly or not?
Tags: how, to, check, samba, configuration, is, correct?
This Post Was Posted On Apr 03, 2010 By Starman #3344
i have a samba server running on my linux server and its not working correctly, how can i check if its working properly or not?
Leave Your Comments
hostman
#3706 1
you can run the testparm command
NAME
       testparm - check an smb.conf configuration file for internal
       correctness

SYNOPSIS
       testparm [-s] [-h] [-v] [-L <servername>] [-t <encoding>]
        {config filename} [hostname hostIP]

DESCRIPTION
       This tool is part of the samba(7) suite.

       testparm is a very simple test program to check an smbd(8)
       configuration file for internal correctness. If this program reports
       no problems, you can use the configuration file with confidence that
       smbd will successfully load the configuration file.

       Note that this is NOT a guarantee that the services specified in the
       configuration file will be available or will operate as expected.

       If the optional host name and host IP address are specified on the
       command line, this test program will run through the service entries
       reporting whether the specified host has access to each service.

       If testparm finds an error in the
        smb.conf file it returns an exit code of 1 to the calling program,
       else it returns an exit code of 0. This allows shell scripts to test
       the output from testparm.
Apr 03, 2010 Reply Report abuse
©2011 Webune Forums - Mon Dec 19, 2011 10:05 am
Powered by: Webune Forums V3