{"id":3656,"date":"2023-12-31T20:02:17","date_gmt":"2023-12-31T11:02:17","guid":{"rendered":"http:\/\/192.168.20.1\/?p=3656"},"modified":"2023-12-31T20:02:17","modified_gmt":"2023-12-31T11:02:17","slug":"smbclient-commad-help","status":"publish","type":"post","link":"https:\/\/rlab.cavtime.net\/?p=3656","title":{"rendered":"smbclient commad help"},"content":{"rendered":"<h2>Overview<\/h2>\n<p>smbclient command \u306e help \u3092\u8a18\u8f09\u3059\u308b\u3002<\/p>\n<h2>Reference<\/h2>\n<h2>Environment<\/h2>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>$ cat \/etc\/os-release\r\nPRETTY_NAME=\"Ubuntu 23.04\"\r\nNAME=\"Ubuntu\"\r\nVERSION_ID=\"23.04\"\r\nVERSION=\"23.04 (Lunar Lobster)\"\r\nVERSION_CODENAME=lunar\r\nID=ubuntu\r\nID_LIKE=debian\r\nHOME_URL=\"https:\/\/www.ubuntu.com\/\"\r\nSUPPORT_URL=\"https:\/\/help.ubuntu.com\/\"\r\nBUG_REPORT_URL=\"https:\/\/bugs.launchpad.net\/ubuntu\/\"\r\nPRIVACY_POLICY_URL=\"https:\/\/www.ubuntu.com\/legal\/terms-and-policies\/privacy-policy\"\r\nUBUNTU_CODENAME=lunar\r\nLOGO=ubuntu-logo\r\n$ uname -a\r\nLinux x201 6.2.0-39-generic #40-Ubuntu SMP PREEMPT_DYNAMIC Tue Nov 14 14:18:00 UTC 2023 x86_64 x86_64 x86_64 GNU\/Linux\r\n$ <\/code><\/pre>\n<\/div>\n<h2>command help<\/h2>\n<div class=\"hcb_wrap\">\n<pre class=\"prism undefined-numbers lang-bash\" data-lang=\"Bash\"><code>\r\n$ smbclient --help\r\nUsage: smbclient [OPTIONS] service <password>\r\n  -M, --message=HOST                           Send message\r\n  -I, --ip-address=IP                          Use this IP to connect to\r\n  -E, --stderr                                 Write messages to stderr instead of stdout\r\n  -L, --list=HOST                              Get a list of shares available on a host\r\n  -T, --tar=&lt;c|x&gt;IXFvgbNan                     Command line tar\r\n  -D, --directory=DIR                          Start from directory\r\n  -c, --command=STRING                         Execute semicolon separated commands\r\n  -b, --send-buffer=BYTES                      Changes the transmit\/send buffer\r\n  -t, --timeout=SECONDS                        Changes the per-operation timeout\r\n  -p, --port=PORT                              Port to connect to\r\n  -g, --grepable                               Produce grepable output\r\n  -q, --quiet                                  Suppress help message\r\n  -B, --browse                                 Browse SMB servers using DNS\r\n\r\nHelp options:\r\n  -?, --help                                   Show this help message\r\n      --usage                                  Display brief usage message\r\n\r\nCommon Samba options:\r\n  -d, --debuglevel=DEBUGLEVEL                  Set debug level\r\n      --debug-stdout                           Send debug output to standard output\r\n  -s, --configfile=CONFIGFILE                  Use alternative configuration file\r\n      --option=name=value                      Set smb.conf option from command line\r\n  -l, --log-basename=LOGFILEBASE               Basename for log\/debug files\r\n      --leak-report                            enable talloc leak reporting on exit\r\n      --leak-report-full                       enable full talloc leak reporting on exit\r\n\r\nConnection options:\r\n  -R, --name-resolve=NAME-RESOLVE-ORDER        Use these name resolution services only\r\n  -O, --socket-options=SOCKETOPTIONS           socket options to use\r\n  -m, --max-protocol=MAXPROTOCOL               Set max protocol level\r\n  -n, --netbiosname=NETBIOSNAME                Primary netbios name\r\n      --netbios-scope=SCOPE                    Use this Netbios scope\r\n  -W, --workgroup=WORKGROUP                    Set the workgroup name\r\n      --realm=REALM                            Set the realm name\r\n\r\nCredential options:\r\n  -U, --user=[DOMAIN\/]USERNAME[%PASSWORD]      Set the network username\r\n  -N, --no-pass                                Don't ask for a password\r\n      --password=STRING                        Password\r\n      --pw-nt-hash                             The supplied password is the NT hash\r\n  -A, --authentication-file=FILE               Get the credentials from a file\r\n  -P, --machine-pass                           Use stored machine account password\r\n      --simple-bind-dn=DN                      DN to use for a simple bind\r\n      --use-kerberos=desired|required|off      Use Kerberos authentication\r\n      --use-krb5-ccache=CCACHE                 Credentials cache location for Kerberos\r\n      --use-winbind-ccache                     Use the winbind ccache for authentication\r\n      --client-protection=sign|encrypt|off     Configure used protection for client\r\n                                               connections\r\n\r\nDeprecated legacy options:\r\n  -k, --kerberos                               DEPRECATED: Migrate to --use-kerberos\r\n\r\nVersion options:\r\n  -V, --version                                Print version\r\n$<\/password><\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Overview smbclient command \u306e help \u3092\u8a18\u8f09\u3059\u308b\u3002 Reference Environment $ cat \/etc\/os-release PRETTY_NAME=&#8221;Ubuntu 23.04 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[67,158],"tags":[],"class_list":["post-3656","post","type-post","status-publish","format-standard","hentry","category-linux","category-windows-file-sharing-samba"],"_links":{"self":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3656"}],"version-history":[{"count":1,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3656\/revisions"}],"predecessor-version":[{"id":3657,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=\/wp\/v2\/posts\/3656\/revisions\/3657"}],"wp:attachment":[{"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rlab.cavtime.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}