Linux/smbclient

From Omnia
Revision as of 06:48, 28 December 2024 by Kenneth (talk | contribs) (→‎smbclient)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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

keywrods