From 88dc78dabdb8301a4d49219dfa5503854f6c1d13 Mon Sep 17 00:00:00 2001
From: bubulle
smbcli
When recursion is toggled OFF, only files from the current working directory on the source machine that match the mask specified to the mget or mput commands will be copied, and any mask specified - using the mask command will be ignored.
Remove all files matching mask
from the current
+ using the mask command will be ignored.
Rename files in the current working directory on the
+ server from old filename
to
+ new filename
.
Remove all files matching mask
from the current
working directory on the server.
Remove the specified directory (user access privileges permitting) from the server.
A version of the DOS attrib command to set file permissions. For example:
setmode myfile +r
would make myfile read only.
Show the currently active connection held for DFS purposes. @@ -463,14 +465,14 @@ options.
smbcli
Changes the currently used vuid in the protocol to the given arbitrary number. Without an argument prints out the current vuid being used. Used for internal Samba testing purposes. -
Some servers are fussy about the case of supplied usernames, passwords, share names (AKA service names) and machine names. If you fail to connect try giving all parameters in uppercase.
It is often necessary to use the -n option when connecting to some types of servers. For example OS/2 LanManager insists on a valid NetBIOS name being used, so you need to supply a valid name that would be known to the server.
smbclient supports long file names where the server - supports the LANMAN2 protocol or above.
The variable USER
may contain the
username of the person using the client. This information is
used only if the protocol level is high enough to support
session-level passwords.
The variable PASSWD
may contain
@@ -480,7 +482,7 @@ options.
smbcli the path, executed with system(), which the client should connect to instead of connecting to a server. This functionality is primarily intended as a development aid, and works best when using a LMHOSTS - file
The location of the client program is a matter for individual system administrators. The following are thus suggestions only.
It is recommended that the smbclient software be installed
in the /usr/local/samba/bin/
or
@@ -491,11 +493,11 @@ options.
smbcli and writeable only by the user.
To test the client, you will need to know the name of a running SMB/CIFS server. It is possible to run smbd(8) as an ordinary user - running that server as a daemon on a user-accessible port (typically any port number over 1024) - would provide a suitable test server.
Most diagnostics issued by the client are logged in a + would provide a suitable test server.
Most diagnostics issued by the client are logged in a specified log file. The log file name is specified at compile time, but may be overridden on the command line.
The number and nature of diagnostics available depends on the debug level used by the client. If you have problems, - set the debug level to 3 and peruse the log files.