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