Home‎ > ‎Dabbles‎ > ‎RaspberryPi‎ > ‎

RaspberryPi 122 - Connecting the Samba Client

posted Nov 4, 2015, 2:23 AM by Joshua S   [ updated Nov 12, 2015, 3:57 PM ]
This tutorial will connect to a Samba.  This will allow for centralized authentication and authorization with integration into Windows and SMB protocols.

LDAP (Lightweight Directory Access Protocol) allows for central authorization (UserIDs and Passwords) and authorization (Security Groups), along with a number of other centralized management functions such as distribution lists.  

With any of the Dabbles on this site, if you have questions, suggestions, or thoughts, please feel free to send me an eMail (I'm still working to figure out how to enable comments on Google Sites -- suggestions would be appreciated)!

Supply List:
  • RaspberryPi  The actual RaspberryPi hardware this will all be built around.  In this tutorial, a Raspberry Pi 2 is used and has a memory card with the Raspbian operating system pre-installed.
  • PuTTY SSH Client – PuTTY is a free and open-source terminal emulator, serial console and network file transfer application. It supports several network protocols, including SCP, SSH, Telnet, rlogin, and raw socket connection.  Other SSH tools can be used, but this tutorial will leverage PuTTY.
Prerequisites:

Project:
  • I know I said this guide was going to be comprehensive and not skip any steps, so what better way to start this off than by skipping steps.  I am not writing out instructions for the following (and illustrating from XKCD):
    • Buying a MicroSD Card
    • Buying a RaspberryPi 
    • Finding the IP Address of your Pi
      • This can be done in many ways, including on your router or using an IP scanner such as (AngryIP Scanner or NMAP) -- if there are requests from the "Contact Me" form; I'll look to create a tutorial for this.
    • Obtaining and installing PuTTY
https://xkcd.com/1343/
  • Using PuTTY (or the SSH client of your choice) enter the IP Address or DNS Name of the RaspberryPi.
  • If this is the first time you connect, you will get a warning that the RaspberryPi's host key is unknown.  Click "Accept" or "Connect Once" to proceed with the connection.
  • Once connected, log onto the Pi using the credentials you created.  If you have not defined your own credentials, you should, but these are the default credentials:
  • UserID:  pi 
  • Password:  raspberry
    • Now let's install the samba client.  Use the following commands:
    sudo apt-get -y install smbclient
        • smbclient  SMB/CIFS file, print, and login client for Unix.
      • With Samba installed, let's configure the client.  Use Nano to edit the /etc/samba/smb.conf file and update the following lines.  An example file is included at the bottom of this lesson.
      sudo nano /etc/samba/smb.conf

      workgroup = <samba workgroup>


      • Congratulations!  Your Client is now configured to integrate with the Samba server! 
      ċ
      smb.conf
      (10k)
      Joshua S,
      Nov 12, 2015, 3:57 PM
      Comments