<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Smbclient</id>
	<title>Smbclient - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Smbclient"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Smbclient&amp;action=history"/>
	<updated>2026-05-03T18:44:53Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Smbclient&amp;diff=46662&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot; Next Previous Contents 8. Accessing an SMB Share With Linux Machines  Linux (UNIX) machines can also browse and mount SMB shares. Note that this can be done whether the serve...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Smbclient&amp;diff=46662&amp;oldid=prev"/>
		<updated>2017-01-27T00:40:39Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; Next Previous Contents 8. Accessing an SMB Share With Linux Machines  Linux (UNIX) machines can also browse and mount SMB shares. Note that this can be done whether the serve...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; Next Previous Contents&lt;br /&gt;
8. Accessing an SMB Share With Linux Machines&lt;br /&gt;
&lt;br /&gt;
Linux (UNIX) machines can also browse and mount SMB shares. Note that this can be done whether the server is a Windows machine or a Samba server!&lt;br /&gt;
&lt;br /&gt;
An SMB client program for UNIX machines is included with the Samba distribution. It provides an ftp-like interface on the command line. You can use this utility to transfer files between a Windows &amp;#039;server&amp;#039; and a Linux client.&lt;br /&gt;
&lt;br /&gt;
Most Linux distributions also now include the useful smbfs package, which allows one to mount and umount SMB shares. More on smbfs below.&lt;br /&gt;
&lt;br /&gt;
To see which shares are available on a given host, run:&lt;br /&gt;
&lt;br /&gt;
    /usr/bin/smbclient -L host&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;host&amp;#039; is the name of the machine that you wish to view. this will return a list of &amp;#039;service&amp;#039; names - that is, names of drives or printers that it can share with you. Unless the SMB server has no security configured, it will ask you for a password. Get it the password for the &amp;#039;guest&amp;#039; account or for your personal account on that machine.&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
    smbclient -L zimmerman&lt;br /&gt;
&lt;br /&gt;
The output of this command should look something like this:&lt;br /&gt;
&lt;br /&gt;
    Server time is Sat Aug 10 15:58:27 1996&lt;br /&gt;
    Timezone is UTC+10.0&lt;br /&gt;
    Password: &lt;br /&gt;
    Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51]&lt;br /&gt;
&lt;br /&gt;
    Server=[ZIMMERMAN] User=[] Workgroup=[WORKGROUP] Domain=[]&lt;br /&gt;
&lt;br /&gt;
            Sharename      Type      Comment&lt;br /&gt;
            ---------      ----      -------&lt;br /&gt;
            ADMIN$         Disk      Remote Admin&lt;br /&gt;
            public         Disk      Public &lt;br /&gt;
            C$             Disk      Default share&lt;br /&gt;
            IPC$           IPC       Remote IPC&lt;br /&gt;
            OReilly        Printer   OReilly&lt;br /&gt;
            print$         Disk      Printer Drivers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    This machine has a browse list:&lt;br /&gt;
&lt;br /&gt;
            Server               Comment&lt;br /&gt;
            ---------            -------&lt;br /&gt;
            HOPPER               Samba 1.9.15p8&lt;br /&gt;
            KERNIGAN             Samba 1.9.15p8&lt;br /&gt;
            LOVELACE             Samba 1.9.15p8&lt;br /&gt;
            RITCHIE              Samba 1.9.15p8&lt;br /&gt;
            ZIMMERMAN            &lt;br /&gt;
&lt;br /&gt;
The browse list shows other SMB servers with resources to share on the network.&lt;br /&gt;
&lt;br /&gt;
To use the client, run:&lt;br /&gt;
&lt;br /&gt;
    /usr/bin/smbclient service &amp;lt;password&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;service&amp;#039; is a machine and share name. For example, if you are trying to reach a directory that has been shared as &amp;#039;public&amp;#039; 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:&lt;br /&gt;
&lt;br /&gt;
    /usr/bin/smbclient \\\\zimmerman\\public mypasswd&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;mypasswd&amp;#039; is the literal string of your password.&lt;br /&gt;
&lt;br /&gt;
You will get the smbclient prompt:&lt;br /&gt;
&lt;br /&gt;
    Server time is Sat Aug 10 15:58:44 1996&lt;br /&gt;
    Timezone is UTC+10.0&lt;br /&gt;
    Domain=[WORKGROUP] OS=[Windows NT 3.51] Server=[NT LAN Manager 3.51]&lt;br /&gt;
    smb: \&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;h&amp;#039; to get help using smbclient:&lt;br /&gt;
&lt;br /&gt;
    smb: \&amp;gt; h&lt;br /&gt;
    ls             dir            lcd            cd             pwd            &lt;br /&gt;
    get            mget           put            mput           rename         &lt;br /&gt;
    more           mask           del            rm             mkdir          &lt;br /&gt;
    md             rmdir          rd             prompt         recurse        &lt;br /&gt;
    translate      lowercase      print          printmode      queue          &lt;br /&gt;
    cancel         stat           quit           q              exit           &lt;br /&gt;
    newer          archive        tar            blocksize      tarmode        &lt;br /&gt;
    setmode        help           ?              !              &lt;br /&gt;
    smb: \&amp;gt; &lt;br /&gt;
&lt;br /&gt;
If you can use ftp, you shouldn&amp;#039;t need the man pages for smbclient.&lt;br /&gt;
&lt;br /&gt;
Although you can use smbclient for testing, you will soon tire of it for real work. For that you will probably want to use the smbfs package. Smbfs comes with two simple utilties, smbmount and smbumount. They work just like mount and umount for SMB shares.&lt;br /&gt;
&lt;br /&gt;
One important thing to note: You must have smbfs support compiled into your kernel to use these utilities!&lt;br /&gt;
&lt;br /&gt;
The following shows a typical use of smbmount to mount an SMB share called &amp;quot;customers&amp;quot; from a machine called &amp;quot;samba1&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
    [root@postel]# smbmount &amp;quot;\\\\samba1\\customers&amp;quot; -U rtg2t -c &amp;#039;mount /customers -u 500 -g 100&amp;#039;&lt;br /&gt;
    Added interface ip=192.168.35.84 bcast=192.168.255.255 nmask=255.255.0.0&lt;br /&gt;
    Got a positive name query response from 192.168.168.158 ( 192.168.168.158 )&lt;br /&gt;
    Server time is Tue Oct  5 10:27:36 1999&lt;br /&gt;
    Timezone is UTC-4.0&lt;br /&gt;
    Password:&lt;br /&gt;
    Domain=[IPM] OS=[Unix] Server=[Samba 2.0.3]&lt;br /&gt;
    security=user&lt;br /&gt;
&lt;br /&gt;
Issuing a mount command will now show the share mounted, just as if it were an NFS export:&lt;br /&gt;
&lt;br /&gt;
    [root@postel]# mount                                                                                                    &lt;br /&gt;
    /dev/hda2 on / type ext2 (rw)&lt;br /&gt;
    none on /proc type proc (rw)&lt;br /&gt;
    none on /dev/pts type devpts (rw,mode=622)&lt;br /&gt;
    //SAMBA1/CUSTOMERS on /customers type smbfs (0)&lt;br /&gt;
&lt;br /&gt;
Please see the manual pages for smbmount and smbumount for details on the above operation.&lt;br /&gt;
&lt;br /&gt;
Next Previous Contents&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* http://www.tldp.org/HOWTO/SMB-HOWTO-8.html&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>