[862] | 1 | '\" t
|
---|
| 2 | .\" Title: smbtree
|
---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
---|
| 5 | .\" Date: 09/18/2013
|
---|
| 6 | .\" Manual: User Commands
|
---|
| 7 | .\" Source: Samba 3.6
|
---|
| 8 | .\" Language: English
|
---|
| 9 | .\"
|
---|
| 10 | .TH "SMBTREE" "1" "09/18/2013" "Samba 3\&.6" "User Commands"
|
---|
| 11 | .\" -----------------------------------------------------------------
|
---|
| 12 | .\" * Define some portability stuff
|
---|
| 13 | .\" -----------------------------------------------------------------
|
---|
| 14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 15 | .\" http://bugs.debian.org/507673
|
---|
| 16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
|
---|
| 17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
---|
| 18 | .ie \n(.g .ds Aq \(aq
|
---|
| 19 | .el .ds Aq '
|
---|
| 20 | .\" -----------------------------------------------------------------
|
---|
| 21 | .\" * set default formatting
|
---|
| 22 | .\" -----------------------------------------------------------------
|
---|
| 23 | .\" disable hyphenation
|
---|
| 24 | .nh
|
---|
| 25 | .\" disable justification (adjust text to left margin only)
|
---|
| 26 | .ad l
|
---|
| 27 | .\" -----------------------------------------------------------------
|
---|
| 28 | .\" * MAIN CONTENT STARTS HERE *
|
---|
| 29 | .\" -----------------------------------------------------------------
|
---|
| 30 | .SH "NAME"
|
---|
| 31 | smbtree \- A text based smb network browser
|
---|
| 32 | .SH "SYNOPSIS"
|
---|
| 33 | .HP \w'\ 'u
|
---|
| 34 | smbtree [\-b] [\-D] [\-S]
|
---|
| 35 | .SH "DESCRIPTION"
|
---|
| 36 | .PP
|
---|
| 37 | This tool is part of the
|
---|
| 38 | \fBsamba\fR(7)
|
---|
| 39 | suite\&.
|
---|
| 40 | .PP
|
---|
| 41 | smbtree
|
---|
| 42 | is a smb browser program in text mode\&. It is similar to the "Network Neighborhood" found on Windows computers\&. It prints a tree with all the known domains, the servers in those domains and the shares on the servers\&.
|
---|
| 43 | .SH "OPTIONS"
|
---|
| 44 | .PP
|
---|
| 45 | \-b|\-\-broadcast
|
---|
| 46 | .RS 4
|
---|
| 47 | Query network nodes by sending requests as broadcasts instead of querying the local master browser\&.
|
---|
| 48 | .RE
|
---|
| 49 | .PP
|
---|
| 50 | \-D|\-\-domains
|
---|
| 51 | .RS 4
|
---|
| 52 | Only print a list of all the domains known on broadcast or by the master browser
|
---|
| 53 | .RE
|
---|
| 54 | .PP
|
---|
| 55 | \-S|\-\-servers
|
---|
| 56 | .RS 4
|
---|
| 57 | Only print a list of all the domains and servers responding on broadcast or known by the master browser\&.
|
---|
| 58 | .RE
|
---|
| 59 | .PP
|
---|
| 60 | \-d|\-\-debuglevel=level
|
---|
| 61 | .RS 4
|
---|
| 62 | \fIlevel\fR
|
---|
| 63 | is an integer from 0 to 10\&. The default value if this parameter is not specified is 0\&.
|
---|
| 64 | .sp
|
---|
| 65 | The higher this value, the more detail will be logged to the log files about the activities of the server\&. At level 0, only critical errors and serious warnings will be logged\&. Level 1 is a reasonable level for day\-to\-day running \- it generates a small amount of information about operations carried out\&.
|
---|
| 66 | .sp
|
---|
| 67 | Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem\&. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic\&.
|
---|
| 68 | .sp
|
---|
| 69 | Note that specifying this parameter here will override the
|
---|
| 70 | \m[blue]\fBlog level\fR\m[]
|
---|
| 71 | parameter in the
|
---|
| 72 | smb\&.conf
|
---|
| 73 | file\&.
|
---|
| 74 | .RE
|
---|
| 75 | .PP
|
---|
| 76 | \-V|\-\-version
|
---|
| 77 | .RS 4
|
---|
| 78 | Prints the program version number\&.
|
---|
| 79 | .RE
|
---|
| 80 | .PP
|
---|
| 81 | \-s|\-\-configfile <configuration file>
|
---|
| 82 | .RS 4
|
---|
| 83 | The file specified contains the configuration details required by the server\&. The information in this file includes server\-specific information such as what printcap file to use, as well as descriptions of all the services that the server is to provide\&. See
|
---|
| 84 | smb\&.conf
|
---|
| 85 | for more information\&. The default configuration file name is determined at compile time\&.
|
---|
| 86 | .RE
|
---|
| 87 | .PP
|
---|
| 88 | \-l|\-\-log\-basename=logdirectory
|
---|
| 89 | .RS 4
|
---|
| 90 | Base directory name for log/debug files\&. The extension
|
---|
| 91 | \fB"\&.progname"\fR
|
---|
| 92 | will be appended (e\&.g\&. log\&.smbclient, log\&.smbd, etc\&.\&.\&.)\&. The log file is never removed by the client\&.
|
---|
| 93 | .RE
|
---|
| 94 | .PP
|
---|
| 95 | \-N|\-\-no\-pass
|
---|
| 96 | .RS 4
|
---|
| 97 | If specified, this parameter suppresses the normal password prompt from the client to the user\&. This is useful when accessing a service that does not require a password\&.
|
---|
| 98 | .sp
|
---|
| 99 | Unless a password is specified on the command line or this parameter is specified, the client will request a password\&.
|
---|
| 100 | .sp
|
---|
| 101 | If a password is specified on the command line and this option is also defined the password on the command line will be silently ingnored and no password will be used\&.
|
---|
| 102 | .RE
|
---|
| 103 | .PP
|
---|
| 104 | \-k|\-\-kerberos
|
---|
| 105 | .RS 4
|
---|
| 106 | Try to authenticate with kerberos\&. Only useful in an Active Directory environment\&.
|
---|
| 107 | .RE
|
---|
| 108 | .PP
|
---|
| 109 | \-C|\-\-use\-ccache
|
---|
| 110 | .RS 4
|
---|
| 111 | Try to use the credentials cached by winbind\&.
|
---|
| 112 | .RE
|
---|
| 113 | .PP
|
---|
| 114 | \-A|\-\-authentication\-file=filename
|
---|
| 115 | .RS 4
|
---|
| 116 | This option allows you to specify a file from which to read the username and password used in the connection\&. The format of the file is
|
---|
| 117 | .sp
|
---|
| 118 | .if n \{\
|
---|
| 119 | .RS 4
|
---|
| 120 | .\}
|
---|
| 121 | .nf
|
---|
| 122 | username = <value>
|
---|
| 123 | password = <value>
|
---|
| 124 | domain = <value>
|
---|
| 125 | .fi
|
---|
| 126 | .if n \{\
|
---|
| 127 | .RE
|
---|
| 128 | .\}
|
---|
| 129 | .sp
|
---|
| 130 | Make certain that the permissions on the file restrict access from unwanted users\&.
|
---|
| 131 | .RE
|
---|
| 132 | .PP
|
---|
| 133 | \-U|\-\-user=username[%password]
|
---|
| 134 | .RS 4
|
---|
| 135 | Sets the SMB username or username and password\&.
|
---|
| 136 | .sp
|
---|
| 137 | If %password is not specified, the user will be prompted\&. The client will first check the
|
---|
| 138 | \fBUSER\fR
|
---|
| 139 | environment variable, then the
|
---|
| 140 | \fBLOGNAME\fR
|
---|
| 141 | variable and if either exists, the string is uppercased\&. If these environmental variables are not found, the username
|
---|
| 142 | \fBGUEST\fR
|
---|
| 143 | is used\&.
|
---|
| 144 | .sp
|
---|
| 145 | A third option is to use a credentials file which contains the plaintext of the username and password\&. This option is mainly provided for scripts where the admin does not wish to pass the credentials on the command line or via environment variables\&. If this method is used, make certain that the permissions on the file restrict access from unwanted users\&. See the
|
---|
| 146 | \fI\-A\fR
|
---|
| 147 | for more details\&.
|
---|
| 148 | .sp
|
---|
| 149 | Be cautious about including passwords in scripts\&. Also, on many systems the command line of a running process may be seen via the
|
---|
| 150 | ps
|
---|
| 151 | command\&. To be safe always allow
|
---|
| 152 | rpcclient
|
---|
| 153 | to prompt for a password and type it in directly\&.
|
---|
| 154 | .RE
|
---|
| 155 | .PP
|
---|
| 156 | \-h|\-\-help
|
---|
| 157 | .RS 4
|
---|
| 158 | Print a summary of command line options\&.
|
---|
| 159 | .RE
|
---|
| 160 | .SH "VERSION"
|
---|
| 161 | .PP
|
---|
| 162 | This man page is correct for version 3 of the Samba suite\&.
|
---|
| 163 | .SH "AUTHOR"
|
---|
| 164 | .PP
|
---|
| 165 | 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\&.
|
---|
| 166 | .PP
|
---|
| 167 | The smbtree man page was written by Jelmer Vernooij\&.
|
---|