1SMBTREE(1) User Commands SMBTREE(1)
2
3
4
6 smbtree - A text based smb network browser
7
9 smbtree [-b] [-D] [-S]
10
12 This tool is part of the samba(7) suite.
13
14 smbtree is a smb browser program in text mode. It is similar to the
15 "Network Neighborhood" found on Windows computers. It prints a tree
16 with all the known domains, the servers in those domains and the shares
17 on the servers.
18
20 -b|--broadcast
21 Query network nodes by sending requests as broadcasts instead of
22 querying the local master browser.
23
24 -D|--domains
25 Only print a list of all the domains known on broadcast or by the
26 master browser
27
28 -S|--servers
29 Only print a list of all the domains and servers responding on
30 broadcast or known by the master browser.
31
32 -d|--debuglevel=level
33 level is an integer from 0 to 10. The default value if this
34 parameter is not specified is 0.
35
36 The higher this value, the more detail will be logged to the log
37 files about the activities of the server. At level 0, only critical
38 errors and serious warnings will be logged. Level 1 is a reasonable
39 level for day-to-day running - it generates a small amount of
40 information about operations carried out.
41
42 Levels above 1 will generate considerable amounts of log data, and
43 should only be used when investigating a problem. Levels above 3
44 are designed for use only by developers and generate HUGE amounts
45 of log data, most of which is extremely cryptic.
46
47 Note that specifying this parameter here will override the log
48 level parameter in the smb.conf file.
49
50 -V|--version
51 Prints the program version number.
52
53 -s|--configfile=<configuration file>
54 The file specified contains the configuration details required by
55 the server. The information in this file includes server-specific
56 information such as what printcap file to use, as well as
57 descriptions of all the services that the server is to provide. See
58 smb.conf for more information. The default configuration file name
59 is determined at compile time.
60
61 -l|--log-basename=logdirectory
62 Base directory name for log/debug files. The extension ".progname"
63 will be appended (e.g. log.smbclient, log.smbd, etc...). The log
64 file is never removed by the client.
65
66 --option=<name>=<value>
67 Set the smb.conf(5) option "<name>" to value "<value>" from the
68 command line. This overrides compiled-in defaults and options read
69 from the configuration file.
70
71 -N|--no-pass
72 If specified, this parameter suppresses the normal password prompt
73 from the client to the user. This is useful when accessing a
74 service that does not require a password.
75
76 Unless a password is specified on the command line or this
77 parameter is specified, the client will request a password.
78
79 If a password is specified on the command line and this option is
80 also defined the password on the command line will be silently
81 ingnored and no password will be used.
82
83 -k|--kerberos
84 Try to authenticate with kerberos. Only useful in an Active
85 Directory environment.
86
87 -C|--use-ccache
88 Try to use the credentials cached by winbind.
89
90 -A|--authentication-file=filename
91 This option allows you to specify a file from which to read the
92 username and password used in the connection. The format of the
93 file is
94
95 username = <value>
96 password = <value>
97 domain = <value>
98
99 Make certain that the permissions on the file restrict access from
100 unwanted users.
101
102 -U|--user=username[%password]
103 Sets the SMB username or username and password.
104
105 If %password is not specified, the user will be prompted. The
106 client will first check the USER environment variable, then the
107 LOGNAME variable and if either exists, the string is uppercased. If
108 these environmental variables are not found, the username GUEST is
109 used.
110
111 A third option is to use a credentials file which contains the
112 plaintext of the username and password. This option is mainly
113 provided for scripts where the admin does not wish to pass the
114 credentials on the command line or via environment variables. If
115 this method is used, make certain that the permissions on the file
116 restrict access from unwanted users. See the -A for more details.
117
118 Be cautious about including passwords in scripts. Also, on many
119 systems the command line of a running process may be seen via the
120 ps command. To be safe always allow rpcclient to prompt for a
121 password and type it in directly.
122
123 -S|--signing on|off|required
124 Set the client signing state.
125
126 -P|--machine-pass
127 Use stored machine account password.
128
129 -e|--encrypt
130 This command line parameter requires the remote server support the
131 UNIX extensions or that the SMB3 protocol has been selected.
132 Requests that the connection be encrypted. Negotiates SMB
133 encryption using either SMB3 or POSIX extensions via GSSAPI. Uses
134 the given credentials for the encryption negotiation (either
135 kerberos or NTLMv1/v2 if given domain/username/password triple.
136 Fails the connection if encryption cannot be negotiated.
137
138 --pw-nt-hash
139 The supplied password is the NT hash.
140
141 -?|--help
142 Print a summary of command line options.
143
144 --usage
145 Display brief usage message.
146
148 This man page is part of version 4.11.4 of the Samba suite.
149
151 The original Samba software and related utilities were created by
152 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
153 Source project similar to the way the Linux kernel is developed.
154
155 The smbtree man page was written by Jelmer Vernooij.
156
157
158
159Samba 4.11.4 12/16/2019 SMBTREE(1)