⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 smbclient.1

📁 samba-3.0.22.tar.gz 编译smb服务器的源码
💻 1
📖 第 1 页 / 共 3 页
字号:
.TPget <remote file name> [local file name]Copy the file called \fIremote file name\fR from the server to the machine running the client\&. If specified, name the local copy \fIlocal file name\fR\&. Note that all transfers in\fBsmbclient\fR are binary\&. See also the lowercase command\&..TPhelp [command]See the ? command above\&..TPlcd [directory name]If \fIdirectory name\fR is specified, the current working directory on the local machine will be changed to the directory specified\&. This operation will fail if for any reason the specified directory is inaccessible\&.If no directory name is specified, the name of the current working directory on the local machine will be reported\&..TPlink target linknameThis command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server create a hard link between the linkname and target files\&. The linkname file must not exist\&..TPlowercaseToggle lowercasing of filenames for the get and mget commands\&.When lowercasing is toggled ON, local filenames are converted to lowercase when using the get and mget commands\&. This is often useful when copying (say) MSDOS files from a server, because lowercase filenames are the norm on UNIX systems\&..TPls <mask>See the dir command above\&..TPmask <mask>This command allows the user to set up a mask which will be used during recursive operation of the mget and mput commands\&.The masks specified to the mget and mput commands act as filters for directories rather than files when recursion is toggled ON\&.The mask specified with the mask command is necessary to filter files within those directories\&. For example, if the mask specified in an mget command is "source*" and the mask specified with the mask command is "*\&.c" and recursion is toggled ON, the mget command will retrieve all files matching "*\&.c" in all directories below and including all directories matching "source*" in the current working directory\&.Note that the value for mask defaults to blank (equivalent to "*") and remains so until the mask command is used to change it\&. It retains the most recently specified value indefinitely\&. To avoid unexpected results it would be wise to change the value of mask back to "*" after using the mget or mput commands\&..TPmd <directory name>See the mkdir command\&..TPmget <mask>Copy all files matching \fImask\fR from the server to the machine running the client\&.Note that \fImask\fR is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\&. Note that all transfers in\fBsmbclient\fR are binary\&. See also the lowercase command\&..TPmkdir <directory name>Create a new directory on the server (user access privileges permitting) with the specified name\&..TPmput <mask>Copy all files matching \fImask\fR in the current working directory on the local machine to the current working directory on the server\&.Note that \fImask\fR is interpreted differently during recursive operation and non\-recursive operation \- refer to the recurse and mask commands for more information\&. Note that all transfers in \fBsmbclient\fR are binary\&..TPprint <file name>Print the specified file from the local machine through a printable service on the server\&..TPpromptToggle prompting for filenames during operation of the mget and mput commands\&.When toggled ON, the user will be prompted to confirm the transfer of each file during these commands\&. When toggled OFF, all specified files will be transferred without prompting\&..TPput <local file name> [remote file name]Copy the file called \fIlocal file name\fR from the machine running the client to the server\&. If specified, name the remote copy \fIremote file name\fR\&. Note that all transfers in \fBsmbclient\fR are binary\&. See also the lowercase command\&..TPqueueDisplays the print queue, showing the job id, name, size and current status\&..TPquitSee the exit command\&..TPrd <directory name>See the rmdir command\&..TPrecurseToggle directory recursion for the commands mget and mput\&.When toggled ON, these commands will process all directories in the source directory (i\&.e\&., the directory they are copying from ) and will recurse into any that match the mask specified to the command\&. Only files that match the mask specified using the mask command will be retrieved\&. See also the mask command\&.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\&..TPrm <mask>Remove all files matching \fImask\fR from the current working directory on the server\&..TPrmdir <directory name>Remove the specified directory (user access privileges permitting) from the server\&..TPsetmode <filename> <perm=[+|\\\-]rsha>A version of the DOS attrib command to set file permissions\&. For example:\fBsetmode myfile +r \fRwould make myfile read only\&..TPstat fileThis command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests the UNIX basic info level and prints out the same info that the Linux stat command would about the file\&. This includes the size, blocks used on disk, file type, permissions, inode number, number of links and finally the three timestamps (access, modify and change)\&. If the file is a special file (symlink, character or block device, fifo or socket) then extra information may also be printed\&..TPsymlink target linknameThis command depends on the server supporting the CIFS UNIX extensions and will fail if the server does not\&. The client requests that the server create a symbolic hard link between the target and linkname files\&. The linkname file must not exist\&. Note that the server will not create a link to any path that lies outside the currently connected share\&. This is enforced by the Samba server\&..TPtar <c|x>[IXbgNa]Performs a tar operation \- see the \fI\-T \fR command line option above\&. Behavior may be affected by the tarmode command (see below)\&. Using g (incremental) and N (newer) will affect tarmode settings\&. Note that using the "\-" option with tar x may not work \- use the command line option instead\&..TPblocksize <blocksize>Blocksize\&. Must be followed by a valid (greater than zero) blocksize\&. Causes tar file to be written out in\fIblocksize\fR*TBLOCK (usually 512 byte) blocks\&..TPtarmode <full|inc|reset|noreset>Changes tar's behavior with regard to archive bits\&. In full mode, tar will back up everything regardless of the archive bit setting (this is the default mode)\&. In incremental mode, tar will only back up files with the archive bit set\&. In reset mode, tar will reset the archive bit on all files it backs up (implies read/write share)\&..SH "NOTES".PPSome 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\&..PPIt 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\&..PPsmbclient supports long file names where the server supports the LANMAN2 protocol or above\&..SH "ENVIRONMENT VARIABLES".PPThe variable \fBUSER\fR 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\&..PPThe variable \fBPASSWD\fR may contain the password of the person using the client\&. This information is used only if the protocol level is high enough to support session\-level passwords\&..PPThe variable \fBLIBSMB_PROG\fR may contain 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.SH "INSTALLATION".PPThe location of the client program is a matter for individual system administrators\&. The following are thus suggestions only\&..PPIt is recommended that the smbclient software be installed in the \fI/usr/local/samba/bin/\fR or \fI /usr/samba/bin/\fR directory, this directory readable by all, writeable only by root\&. The client program itself should be executable by all\&. The client should \fBNOT\fR be setuid or setgid!.PPThe client log files should be put in a directory readable and writeable only by the user\&..PPTo test the client, you will need to know the name of a running SMB/CIFS server\&. It is possible to run \fBsmbd\fR(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\&..SH "DIAGNOSTICS".PPMost 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\&..PPThe 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\&..SH "VERSION".PPThis man page is correct for version 3 of the Samba suite\&..SH "AUTHOR".PPThe original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&..PPThe original Samba man pages were written by Karl Auer\&. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at ftp://ftp\&.icce\&.rug\&.nl/pub/unix/) and updated for the Samba 2\&.0 release by Jeremy Allison\&. The conversion to DocBook for Samba 2\&.2 was done by Gerald Carter\&. The conversion to DocBook XML 4\&.2 for Samba 3\&.0 was done by Alexander Bokovoy\&.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -