To see which shares are available on a given host, run:
/usr/bin/smbclient -L host
where 'host' is the name of the machine that you wish to view.
The browse list shows other SMB servers with resources to share on the network
To use the client, run:
/usr/bin/smbclient service
where 'service' is a machine and share name. For example, if you are trying to reach a directory that has been shared as 'public' on a machine called zimmerman, the service would be called \\zimmerman\public. However, due to shell restrictions, you will need to escape the backslashes, so you end up with something like this:
/usr/bin/smbclient \\\\zimmerman\\public mypasswd
where 'mypasswd' is the literal string of your password.
You will get the smbclient prompt:
Server time is Sat Aug 10 15:58:44 1996
Timezone is UTC+10.0
Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51]
smb: \>
Type 'h' to get help using smbclient:
smb: \> h
Sunday, February 7, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment