Welcome to Linux Knowledge Base and Tutorial
"The place where you learn linux"
Linux Magazine

 Create an AccountHome | Submit News | Your Account  

Tutorial Menu
Linux Tutorial Home
Table of Contents

· Introduction to Operating Systems
· Linux Basics
· Working with the System
· Shells and Utilities
· Editing Files
· Basic Administration
· The Operating System
· The X Windowing System
· The Computer Itself
· Networking
· System Monitoring
· Solving Problems
· Security
· Installing and Upgrading
· Linux and Windows

Glossary
MoreInfo
Man Pages
Linux Topics
Test Your Knowledge

Site Menu
Site Map
FAQ
Copyright Info
Terms of Use
Privacy Info
Disclaimer
WorkBoard
Thanks
Donations
Advertising
Masthead / Impressum
Your Account

Communication
Feedback
Forums
Private Messages
Surveys

Features
HOWTOs
News Archive
Submit News
Topics
User Articles
Web Links

Google
Google


The Web
linux-tutorial.info

Who's Online
There are currently, 201 guest(s) and 0 member(s) that are online.

You are an Anonymous user. You can register for free by clicking here

  

testparm




SYNOPSIS

       testparm [ -s ]  [ -h ]  [ -x ]  [ -L <servername> ]  con­
       fig filename [ hostname hostIP ]


DESCRIPTION

       This tool is part of the  Samba suite.

       testparm  is  a  very simple test program to check an smbd
       configuration file for internal correctness. If this  pro­
       gram  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 speci­
       fied in the configuration file will be available  or  will
       operate as expected.

       If  the  optional host name and host IP address are speci­
       fied on the command  line,  this  test  program  will  run
       through  the  service entries reporting whether the speci­
       fied 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.


OPTIONS

       -s     Without  this  option,  testparm  will prompt for a
              carriage return after printing  the  service  names
              and before dumping the service definitions.

       -h     Print usage message

       -x     Print only parameters that have non-default values

       -L servername
              Sets the value of the %L macro to servername.  This
              is useful for testing include files specified  with
              the %L macro.

       configfilename
              This  is  the  name  of  the  configuration file to
              check. If this parameter is not  present  then  the
              default smb.conf file will be checked.

       hostname
              If  this parameter and the following are specified,
              then testparm will  examine  the  hosts  allow  and
              hosts  deny  parameters  in  the  smb.conf  file to
              determine if the  hostname  with  this  IP  address

       The program will issue a message saying whether  the  con­
       figuration file loaded OK or not. This message may be pre­
       ceded by errors and warnings if the file did not load.  If
       the  file  was loaded OK, the program then dumps all known
       service details to stdout.


VERSION

       This man page is correct for  version  2.2  of  the  Samba
       suite.


SEE ALSO

       smb.conf(5) smbd(8)


AUTHOR

       The  original  Samba  software  and related utilities were
       created by Andrew Tridgell. Samba is now developed by  the
       Samba  Team  as  an Open Source project similar to the way
       the Linux kernel is developed.

       The original Samba man pages were written  by  Karl  Auer.
       The  man  page  sources  were  converted  to  YODL  format
       (another excellent piece of Open Source  software,  avail­
       able           at          ftp://ftp.icce.rug.nl/pub/unix/
       <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the
       Samba  2.0  release  by  Jeremy Allison. The conversion to
       DocBook for Samba 2.2 was done by Gerald Carter

                         19 November 2002             TESTPARM(1)
  
Help us cut cost by not downloading the whole site!
Use of automated download sofware ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and therefore is expressedly prohibited. For more details on this, take a look here

Login
Nickname

Password

Security Code
Security Code
Type Security Code


Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name.

Help if you can!


Amazon Wish List

Did You Know?
The Linux Tutorial can use your help.


Friends



Tell a Friend About Us

Bookmark and Share



Web site powered by PHP-Nuke

Is this information useful? At the very least you can help by spreading the word to your favorite newsgroups, mailing lists and forums.
All logos and trademarks in this site are property of their respective owner. The comments are property of their posters. Articles are the property of their respective owners. Unless otherwise stated in the body of the article, article content (C) 1994-2013 by James Mohr. All rights reserved. The stylized page/paper, as well as the terms "The Linux Tutorial", "The Linux Server Tutorial", "The Linux Knowledge Base and Tutorial" and "The place where you learn Linux" are service marks of James Mohr. All rights reserved.
The Linux Knowledge Base and Tutorial may contain links to sites on the Internet, which are owned and operated by third parties. The Linux Tutorial is not responsible for the content of any such third-party site. By viewing/utilizing this web site, you have agreed to our disclaimer, terms of use and privacy policy. Use of automated download software ("harvesters") such as wget, httrack, etc. causes the site to quickly exceed its bandwidth limitation and are therefore expressly prohibited. For more details on this, take a look here

PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.09 Seconds