xref: /freebsd/contrib/smbfs/smbutil/smbutil.1 (revision dddf29712f38ba1d804c02bcfd02d24098ae48b0)
134ffbc80SSheldon Hearn.\" $Id: smbutil.1,v 1.5 2002/04/16 02:48:16 bp Exp $
2830809aeSMateusz Piotrowski.Dd November 14, 2018
3f1b9d127SSheldon Hearn.Dt SMBUTIL 1
4f1b9d127SSheldon Hearn.Os
5f1b9d127SSheldon Hearn.Sh NAME
6f1b9d127SSheldon Hearn.Nm smbutil
7*dddf2971SAlexander Ziaee.Nd interface to the server message block (SMB1/CIFS) requester
8f1b9d127SSheldon Hearn.Sh SYNOPSIS
934ffbc80SSheldon Hearn.Nm
10f1b9d127SSheldon Hearn.Op Fl hv
11f1b9d127SSheldon Hearn.Ar command
12830809aeSMateusz Piotrowski.Op Ar options
13f1b9d127SSheldon Hearn.Op Ar args
14f1b9d127SSheldon Hearn.Sh DESCRIPTION
15f1b9d127SSheldon HearnThe
16f1b9d127SSheldon Hearn.Nm
1734ffbc80SSheldon Hearncommand is used to control SMB requester and issue various commands.
18f1b9d127SSheldon Hearn.Pp
1934ffbc80SSheldon HearnThere are two types of options \(em global and local to the specified
2034ffbc80SSheldon Hearn.Ar command .
21f1b9d127SSheldon Hearn.Pp
2234ffbc80SSheldon HearnGlobal options are as follows:
23f1b9d127SSheldon Hearn.Bl -tag -width indent
24f1b9d127SSheldon Hearn.It Fl h
2534ffbc80SSheldon HearnPrint a short help message.
26f1b9d127SSheldon Hearn.It Fl v
27f1b9d127SSheldon HearnVerbose output.
28f1b9d127SSheldon Hearn.El
29f1b9d127SSheldon Hearn.Pp
30f1b9d127SSheldon HearnThe commands and local options are:
31f1b9d127SSheldon Hearn.Bl -tag -width indent
3234ffbc80SSheldon Hearn.It Cm crypt Op Ar password
3334ffbc80SSheldon HearnEncrypt clear text password for use in the
34f1b9d127SSheldon Hearn.Pa ~/.nsmbrc
3534ffbc80SSheldon Hearnfile.
3634ffbc80SSheldon HearnThe encrypted password starts with the
3734ffbc80SSheldon Hearn.Ql $$1
3834ffbc80SSheldon Hearnsymbols.
3934ffbc80SSheldon HearnWarning: the encryption function is very weak and intended only to hide
40f1b9d127SSheldon Hearnclear text password.
41f1b9d127SSheldon HearnIf
42f1b9d127SSheldon Hearn.Ar password
4334ffbc80SSheldon Hearnis omitted from the command line,
4434ffbc80SSheldon Hearn.Nm
4534ffbc80SSheldon Hearnwill prompt for one.
4634ffbc80SSheldon Hearn.It Cm help Ar command
47f1b9d127SSheldon HearnPrint usage information about
48f1b9d127SSheldon Hearn.Ar command .
4934ffbc80SSheldon Hearn.It Cm lc
50f1b9d127SSheldon HearnList active connections and their parameters.
51f1b9d127SSheldon Hearn.It Xo
5234ffbc80SSheldon Hearn.Cm login
53830809aeSMateusz Piotrowski.Op Ar connection_options
54830809aeSMateusz Piotrowski.Cm \&// Ns Ar user Ns Cm \&@ Ns Ar server Ns Op Cm \&/ Ns Ar share
55f1b9d127SSheldon Hearn.Xc
56f1b9d127SSheldon HearnLogin/attach to the specified
57f1b9d127SSheldon Hearn.Ar server
58f1b9d127SSheldon Hearnand/or
59f1b9d127SSheldon Hearn.Ar share
60f1b9d127SSheldon Hearnas
61f1b9d127SSheldon Hearn.Ar user .
62f1b9d127SSheldon HearnThis command will create and authenticate connection to an SMB server, and
63f1b9d127SSheldon Hearnwill leave it active after exit.
6434ffbc80SSheldon HearnThus, it is possible to login only once and then
65f1b9d127SSheldon Hearnuse other SMB commands without authentication procedure and additional
66f1b9d127SSheldon Hearnconnections.
67f1b9d127SSheldon HearnFor the description of
68830809aeSMateusz Piotrowski.Ar connection_options
6934ffbc80SSheldon Hearnrefer to the
70f1b9d127SSheldon Hearn.Xr mount_smbfs 8
71830809aeSMateusz Piotrowskimanual page (all uppercase options are connection options).
72f1b9d127SSheldon Hearn.It Xo
7334ffbc80SSheldon Hearn.Cm logout
74830809aeSMateusz Piotrowski.Cm \&// Ns Ar user Ns Cm \&@ Ns Ar server Ns Op Cm \&/ Ns Ar share
75f1b9d127SSheldon Hearn.Xc
76f1b9d127SSheldon HearnLogout/detach from the specified
77f1b9d127SSheldon Hearn.Ar server
78f1b9d127SSheldon Hearnand/or
79f1b9d127SSheldon Hearn.Ar share
80f1b9d127SSheldon Hearnas
81f1b9d127SSheldon Hearn.Ar user .
8234ffbc80SSheldon HearnThis command will destroy a connection created by the
8334ffbc80SSheldon Hearn.Cm login
8434ffbc80SSheldon Hearncommand.
8534ffbc80SSheldon HearnA connection may not be closed immediately if it is used by other
86f1b9d127SSheldon Hearnprograms.
87f1b9d127SSheldon Hearn.It Xo
8834ffbc80SSheldon Hearn.Cm lookup
89f1b9d127SSheldon Hearn.Op Fl w Ar host
90f1b9d127SSheldon Hearn.Ar name
91f1b9d127SSheldon Hearn.Xc
9234ffbc80SSheldon HearnResolve the given
93f1b9d127SSheldon Hearn.Ar name
9434ffbc80SSheldon Hearnto an IP address.
9534ffbc80SSheldon HearnThe NetBIOS name server can be directly specified via the
9634ffbc80SSheldon Hearn.Fl w
97f1b9d127SSheldon Hearnoption.
98f1b9d127SSheldon Hearn.It Xo
9934ffbc80SSheldon Hearn.Cm print
100830809aeSMateusz Piotrowski.Op Ar connection_options
101830809aeSMateusz Piotrowski.Cm \&// Ns Ar user Ns Cm \&@ Ns Ar server Ns Op Cm \&/ Ns Ar share
102f1b9d127SSheldon Hearn.Ar file
103f1b9d127SSheldon Hearn.Xc
10434ffbc80SSheldon HearnSend the given
105f1b9d127SSheldon Hearn.Ar file
106f1b9d127SSheldon Hearnto the specified queue on the remote server.
107f1b9d127SSheldon HearnIf
108f1b9d127SSheldon Hearn.Ar file
10934ffbc80SSheldon Hearnis
110830809aeSMateusz Piotrowski.Dq Pa - ,
11134ffbc80SSheldon Hearnthen standard input will be used.
112f1b9d127SSheldon Hearn.It Xo
11334ffbc80SSheldon Hearn.Cm view
114830809aeSMateusz Piotrowski.Op Ar connection_options
115830809aeSMateusz Piotrowski.Cm \&// Ns Ar user Ns Cm \&@ Ns Ar server
116f1b9d127SSheldon Hearn.Xc
11734ffbc80SSheldon HearnList resources available on the specified
118f1b9d127SSheldon Hearn.Ar server
119f1b9d127SSheldon Hearnfor the user
120f1b9d127SSheldon Hearn.Ar user .
121f1b9d127SSheldon Hearn.El
122f1b9d127SSheldon Hearn.Sh FILES
12334ffbc80SSheldon Hearn.Bl -tag -width ".Pa ~/.nsmbrc" -compact
124f1b9d127SSheldon Hearn.It Pa ~/.nsmbrc
12534ffbc80SSheldon HearnKeeps description for each connection.
126f1b9d127SSheldon HearnSee
127830809aeSMateusz Piotrowski.Pa /usr/share/examples/smbfs/dot.nsmbrc
128f1b9d127SSheldon Hearnfor details.
129df3342d6SSheldon Hearn.El
1308df50790SMateusz Piotrowski.Sh SEE ALSO
1318df50790SMateusz Piotrowski.Xr nsmb.conf 5 ,
1328df50790SMateusz Piotrowski.Xr mount_smbfs 8
133f1b9d127SSheldon Hearn.Sh AUTHORS
134f1b9d127SSheldon Hearn.An Boris Popov Aq bp@butya.kz ,
13534ffbc80SSheldon Hearn.Aq bp@FreeBSD.org
136f1b9d127SSheldon Hearn.Sh BUGS
137f1b9d127SSheldon HearnPlease report any bugs to the author.
138