freebsd-dev/contrib/smbfs/smbutil/smbutil.1

135 lines
2.7 KiB
Groff
Raw Normal View History

2002-04-22 16:15:20 +00:00
.\" $Id: smbutil.1,v 1.5 2002/04/16 02:48:16 bp Exp $
.Dd February 14, 2000
.Dt SMBUTIL 1
.Os
.Sh NAME
.Nm smbutil
2002-04-22 16:15:20 +00:00
.Nd "interface to the SMB requester"
.Sh SYNOPSIS
2002-04-22 16:15:20 +00:00
.Nm
.Op Fl hv
.Ar command
2002-04-22 16:15:20 +00:00
.Op Fl Ar options
.Op Ar args
.Sh DESCRIPTION
The
.Nm
2002-04-22 16:15:20 +00:00
command is used to control SMB requester and issue various commands.
.Pp
2002-04-22 16:15:20 +00:00
There are two types of options \(em global and local to the specified
.Ar command .
.Pp
2002-04-22 16:15:20 +00:00
Global options are as follows:
.Bl -tag -width indent
.It Fl h
2002-04-22 16:15:20 +00:00
Print a short help message.
.It Fl v
Verbose output.
.El
.Pp
The commands and local options are:
.Bl -tag -width indent
2002-04-22 16:15:20 +00:00
.It Cm crypt Op Ar password
Encrypt clear text password for use in the
.Pa ~/.nsmbrc
2002-04-22 16:15:20 +00:00
file.
The encrypted password starts with the
.Ql $$1
symbols.
Warning: the encryption function is very weak and intended only to hide
clear text password.
If
.Ar password
2002-04-22 16:15:20 +00:00
is omitted from the command line,
.Nm
will prompt for one.
.It Cm help Ar command
Print usage information about
.Ar command .
2002-04-22 16:15:20 +00:00
.It Cm lc
List active connections and their parameters.
.It Xo
2002-04-22 16:15:20 +00:00
.Cm login
.Op Fl Ar connection_options
.No // Ns Ar user Ns @ Ns Ar server Ns Op / Ns Ar share
.Xc
Login/attach to the specified
.Ar server
and/or
.Ar share
as
.Ar user .
This command will create and authenticate connection to an SMB server, and
will leave it active after exit.
2002-04-22 16:15:20 +00:00
Thus, it is possible to login only once and then
use other SMB commands without authentication procedure and additional
connections.
For the description of
2002-04-22 16:15:20 +00:00
.Fl Ar connection_options
refer to the
.Xr mount_smbfs 8
2002-04-22 16:15:20 +00:00
manpage (all uppercase options are connection options).
.It Xo
2002-04-22 16:15:20 +00:00
.Cm logout
.No // Ns Ar user Ns @ Ns Ar server Ns Op / Ns Ar share
.Xc
Logout/detach from the specified
.Ar server
and/or
.Ar share
as
.Ar user .
2002-04-22 16:15:20 +00:00
This command will destroy a connection created by the
.Cm login
command.
A connection may not be closed immediately if it is used by other
programs.
.It Xo
2002-04-22 16:15:20 +00:00
.Cm lookup
.Op Fl w Ar host
.Ar name
.Xc
2002-04-22 16:15:20 +00:00
Resolve the given
.Ar name
2002-04-22 16:15:20 +00:00
to an IP address.
The NetBIOS name server can be directly specified via the
.Fl w
option.
.It Xo
2002-04-22 16:15:20 +00:00
.Cm print
.Op Fl Ar connection_options
.No // Ns Ar user Ns @ Ns Ar server Ns / Ns Ar share
.Ar file
.Xc
2002-04-22 16:15:20 +00:00
Send the given
.Ar file
to the specified queue on the remote server.
If
.Ar file
2002-04-22 16:15:20 +00:00
is
.Pa - ,
then standard input will be used.
.It Xo
2002-04-22 16:15:20 +00:00
.Cm view
.Op Fl Ar connection_options
.No // Ns Ar user Ns @ Ns Ar server
.Xc
2002-04-22 16:15:20 +00:00
List resources available on the specified
.Ar server
for the user
.Ar user .
.El
.Sh FILES
2002-04-22 16:15:20 +00:00
.Bl -tag -width ".Pa ~/.nsmbrc" -compact
.It Pa ~/.nsmbrc
2002-04-22 16:15:20 +00:00
Keeps description for each connection.
See
.Pa ./examples/dot.nsmbrc
for details.
2001-12-20 16:16:25 +00:00
.El
.Sh AUTHORS
.An Boris Popov Aq bp@butya.kz ,
2002-04-22 16:15:20 +00:00
.Aq bp@FreeBSD.org
.Sh BUGS
Please report any bugs to the author.