Linux/smbclient: Difference between revisions
< Linux
(Created page with "== smbclient == List shares on windows machine or samba server: smbclient -L windows_box Send message from Linux echo "This is a test" | smbclient -M <computer> -U <any_name> Connect to samba server (using ftp like commands) samba -U [USER] \\\\machine\\share\\ samba -U [USER] //machine/share/ samba -U [USER]%[PASSWORD] //machine/share/ == Samba == See Linux/Samba == keywrods ==") |
|||
Line 8: | Line 8: | ||
Connect to samba server (using ftp like commands) | Connect to samba server (using ftp like commands) | ||
smbclient -U [USER] \\\\machine\\share\\ | |||
smbclient -U [USER] //machine/share/ | |||
smbclient -U [USER]%[PASSWORD] //machine/share/ | |||
List directory and exit: | |||
"dir somepath/" | smbclient -U [USER] //machine/share/ | |||
== Samba == | == Samba == |
Latest revision as of 06:48, 28 December 2024
smbclient
List shares on windows machine or samba server:
smbclient -L windows_box
Send message from Linux
echo "This is a test" | smbclient -M <computer> -U <any_name>
Connect to samba server (using ftp like commands)
smbclient -U [USER] \\\\machine\\share\\ smbclient -U [USER] //machine/share/ smbclient -U [USER]%[PASSWORD] //machine/share/
List directory and exit:
"dir somepath/" | smbclient -U [USER] //machine/share/
Samba
See Linux/Samba