Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

smbutil(1) [freebsd man page]

SMBUTIL(1)						    BSD General Commands Manual 						SMBUTIL(1)

NAME
smbutil -- interface to the SMB requester SYNOPSIS
smbutil [-hv] command [-options] [args] DESCRIPTION
The smbutil command is used to control SMB requester and issue various commands. There are two types of options -- global and local to the specified command. Global options are as follows: -h Print a short help message. -v Verbose output. The commands and local options are: crypt [password] Encrypt clear text password for use in the ~/.nsmbrc file. The encrypted password starts with the '$$1' symbols. Warning: the encryption function is very weak and intended only to hide clear text password. If password is omitted from the command line, smbutil will prompt for one. help command Print usage information about command. lc List active connections and their parameters. login [-connection_options] //user@server[/share] Login/attach to the specified server and/or share as user. This command will create and authenticate connection to an SMB server, and will leave it active after exit. Thus, it is possible to login only once and then use other SMB commands without authentication procedure and additional connections. For the description of -connection_options refer to the mount_smbfs(8) manpage (all uppercase options are connection options). logout //user@server[/share] Logout/detach from the specified server and/or share as user. This command will destroy a connection created by the login command. A connection may not be closed immediately if it is used by other programs. lookup [-w host] name Resolve the given name to an IP address. The NetBIOS name server can be directly specified via the -w option. print [-connection_options] //user@server/share file Send the given file to the specified queue on the remote server. If file is -, then standard input will be used. view [-connection_options] //user@server List resources available on the specified server for the user user. FILES
~/.nsmbrc Keeps description for each connection. See ./examples/dot.nsmbrc for details. AUTHORS
Boris Popov <bp@butya.kz>, <bp@FreeBSD.org> BUGS
Please report any bugs to the author. BSD
February 14, 2000 BSD

Check Out this Related Man Page

MOUNT_SMBFS(8)						    BSD System Manager's Manual 					    MOUNT_SMBFS(8)

NAME
mount_smbfs -- mounts a shared resource from an SMB file server SYNOPSIS
mount_smbfs [-I host] [-M cmode[/smode]] [-N] [-O cowner[:cgroup]/sowner[:sgroup]] [-R retrycount] [-T timeout] [-U user] [-W workgroup] [-d mode] [-f mode] [-g gid] [-h] [-n opt] [-u uid] //[workgroup;][user[password]@] server[/share] path DESCRIPTION
The mount_smbfs command mounts a share from a remote server using SMB/CIFS protocol. The options are: -I host Do not use NetBIOS name resolver and connect directly to host, which can be either a valid DNS name or an IP address. -M cmode[/smode] Assign access rights to the newly created connection. -N Do not ask for a password. At run time, mount_smbfs reads the ~/.nsmbrc file for additional configuration parameters and a password. If no password is found the mount_smbfs prompts for it. -O cowner[:cgroup]/sowner[:sgroup] Assign owner/group attributes to the newly created connection. -R retrycount How many retries should be done before the SMB requester decides to drop the connection. -T timeout Timeout in seconds for each request. -U user Specifies the user name to be used in the authentication request. -W workgroup Specifies the workgroup to be used in the authentication request. -f mode, -d mode Specify permissions that should be assigned to files and directories. The values must be specified as octal numbers. Default value for the file mode is taken from mount point, default value for the dir mode adds execute permission where the file mode gives read permission. Note that these permissions can differ from the rights granted by SMB server. -h Prints a help message, much like the SYNOPSIS above. -n opt Set opt option to affect file name lookups. opt can be one of the following: Value Meaning long No long names. Server supports only "8.3" format. -u uid, -g gid User id and group id assigned to files. The default is owner and group id from directory where the volume is mounted. //[workgroup;][user[password]@] server[/share] The mount_smbfs command will use server as the NetBIOS name of remote computer, user as the remote user name and share as the resource name on a remote server. Workgroup and/or password may be specified here. If user is omitted the logged in user id will be used. Omitting share is an error when mount_smbfs is run from the command line, otherwise a browsing dialogue is presented. path Path to mount point. FILES
~/.nsmbrc Keeps static parameters for connections and other information. See ./examples/dot.nsmbrc for details. EXAMPLES
The following illustrate how to connect to an SMB server SAMBA as user GUEST to mount PUBLIC: mount_smbfs -I samba.mydomain.com //guest@samba/public /smb/public BUGS
Please report bugs to Apple. AUTHORS
Boris Popov <bp@butya.kz>, <bp@freebsd.org> FreeBSD Mar 10, 2000 FreeBSD
Man Page