From 17d346e2276710b969f79accbc2e3ae028d89efc Mon Sep 17 00:00:00 2001 From: Jeremy Liberman Date: Tue, 9 Jan 2018 14:19:25 -0600 Subject: [PATCH 1/2] smbclient: add page --- pages/linux/smbclient.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pages/linux/smbclient.md diff --git a/pages/linux/smbclient.md b/pages/linux/smbclient.md new file mode 100644 index 0000000000..c167ed1bb6 --- /dev/null +++ b/pages/linux/smbclient.md @@ -0,0 +1,19 @@ +# smbclient + +> FTP-like client to access SMB/CIFS resources on servers. + +- Connect to a share (`exit` to quit the session): + +`smbclient {{//server/share}}` + +- Connect with a username and password: + +`smbclient {{//server/share}} --user {{username%password}}` + +- Download a file from the server: + +`smbclient {{//server/share}} --directory {{path/to/folder}} --command "get {{file.txt}}"` + +- Upload a file to the server: + +`smbclient {{//server/share}} --directory {{path/to/folder}} --command "put {{file.txt}}"` From 49a2f7db76256bc32abca8bb7ba721ed2bd72f25 Mon Sep 17 00:00:00 2001 From: Jeremy Liberman Date: Wed, 10 Jan 2018 10:41:27 -0600 Subject: [PATCH 2/2] smbclient: corrections from peer review --- pages/linux/smbclient.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/linux/smbclient.md b/pages/linux/smbclient.md index c167ed1bb6..a9cd0beee2 100644 --- a/pages/linux/smbclient.md +++ b/pages/linux/smbclient.md @@ -2,10 +2,14 @@ > FTP-like client to access SMB/CIFS resources on servers. -- Connect to a share (`exit` to quit the session): +- Connect to a share (user will be prompted for password; `exit` to quit the session): `smbclient {{//server/share}}` +- Connect with a different username: + +`smbclient {{//server/share}} --user {{username}}` + - Connect with a username and password: `smbclient {{//server/share}} --user {{username%password}}`