<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:og="http://ogp.me/ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:schema="http://schema.org/" xmlns:sioc="http://rdfs.org/sioc/ns#" xmlns:sioct="http://rdfs.org/sioc/types#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/">
  <channel>
    <title>Samba</title>
    <link>https://www.linuxjournal.com/</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Papa's Got a Brand New NAS: the Software</title>
  <link>https://www.linuxjournal.com/content/papas-got-brand-new-nas-software</link>
  <description>  &lt;div data-history-node-id="1340119" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/kyle-rankin" lang="" about="https://www.linuxjournal.com/users/kyle-rankin" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Kyle Rankin&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;&lt;em&gt;Who needs a custom NAS OS or a web-based GUI when command-line
NAS software is so easy to configure?&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
In a recent letter to the editor, I was contacted by a reader who
enjoyed my &lt;a href="https://www.linuxjournal.com/content/papas-got-brand-new-nas"&gt;"Papa's
Got a Brand New NAS"&lt;/a&gt; article, but wished I had
spent more time describing the software I used. When I
wrote the article, I decided not to dive into the software too much,
because it all was pretty standard for serving files under Linux.
But on second thought, if you want to re-create what I made, I
imagine it would be nice to know the software side as well, so this article
describes the software I use in my home NAS.
&lt;/p&gt;

&lt;span class="h3-replacement"&gt;
The OS&lt;/span&gt;

&lt;p&gt;
My NAS uses the &lt;a href="https://www.hardkernel.com/main/products/prdt_info.php"&gt;ODROID-XU4&lt;/a&gt; as the main computing platform, and so
far, I've found its octo-core ARM CPU and the rest of its resources
to be adequate for a home NAS. When I first set it up, I visited the
&lt;a href="https://wiki.odroid.com/odroid-xu4/odroid-xu4"&gt;official wiki
page&lt;/a&gt; for the computer, which provides a number of OS
images, including Ubuntu and Android images that you can copy onto a
microSD card. Those images are geared more toward desktop use,
however, and I wanted a minimal server image. After some searching,
I found a &lt;a href="https://forum.odroid.com/viewtopic.php?f=96&amp;t=17542"&gt;minimal image for what was the current Debian stable
release at the time (Jessie)&lt;/a&gt;.
&lt;/p&gt;


&lt;p&gt;
Although this minimal image worked okay for me, I don't necessarily
recommend just going with whatever OS some volunteer on a forum
creates. Since I first set up the computer, the Armbian project has
been released, and it supports a number of standardized OS images for quite
a few ARM platforms including the ODROID-XU4. So if you
want to follow in my footsteps, you may want to start with the &lt;a href="https://www.armbian.com/odroid-xu4"&gt;minimal Armbian
Debian image&lt;/a&gt;.
&lt;/p&gt;

&lt;p&gt;
If you've ever used a Raspberry Pi before, the process of setting
up an alternative ARM board shouldn't be too different. Use another
computer to write an OS image to a microSD card, boot the ARM board,
and at boot, the image will expand to fill the existing filesystem.
Then reboot and connect to the network, so you can log in with the default
credentials your particular image sets up. Like with Raspbian builds,
the first step you should perform with Armbian or any other OS image
is to change the default password to something else. Even better,
you should consider setting up proper user accounts instead of
relying on the default.
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/papas-got-brand-new-nas-software" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Mon, 29 Oct 2018 12:00:00 +0000</pubDate>
    <dc:creator>Kyle Rankin</dc:creator>
    <guid isPermaLink="false">1340119 at https://www.linuxjournal.com</guid>
    </item>
<item>
  <title>smbclient Security for Windows Printing and File Transfer</title>
  <link>https://www.linuxjournal.com/content/smbclient-security-windows-printing-and-file-transfer</link>
  <description>  &lt;div data-history-node-id="1339335" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/charles-fisher" lang="" about="https://www.linuxjournal.com/users/charles-fisher" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Charles Fisher&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
Microsoft Windows is usually a presence in most computing environments, and UNIX
administrators likely will be forced to use resources in Windows networks from
time to time. Although many are familiar with the Samba server software, the matching
smbclient utility often escapes notice.
&lt;/p&gt;

&lt;p&gt;
The "map network drive" function of Windows relies upon the &lt;a href="https://en.wikipedia.org/wiki/Server_Message_Block"&gt;Server Message Block&lt;/a&gt;
network protocol that has evolved chiefly within the descendents of NT. The
smbclient utility presents an interface reminiscent of FTP that allows file
transfer to and from disk directories and printers on an NT server over SMB where
sharing is enabled.
&lt;/p&gt;

&lt;p&gt;
In this article, I present connection examples for Windows services, then develop
a general script for pushing content to Windows shares. I discuss when the
SMB protocols should be used and, more important, when they should not.
&lt;/p&gt;


&lt;span class="h3-replacement"&gt;Connection Examples&lt;/span&gt;

&lt;p&gt;
Samba for UNIX is well known for server software that interoperates with clients
on Windows networks. However, it also includes the smbclient program that can
manipulate any SMB server. The smbclient program will be immediately familiar to those
experienced with command-line FTP.
&lt;/p&gt;

&lt;p&gt;
The smbclient program can query SMB servers for a list of visible shares using the
&lt;code&gt;-L&lt;/code&gt; option:

&lt;/p&gt;&lt;pre&gt;
&lt;code&gt;
$ smbclient -L dc.somecompany.com -U nt_username -W nt_domain

Enter nt_username's password:

Domain=[NT_DOMAIN]
OS=[Windows Server 2008 R2 Standard 7601 Service Pack 1]
Server=[Windows Server 2008 R2 Standard 6.1]

     Sharename       Type      Comment
     ---------       ----      -------
     C$              Disk      Default share
     file_stash      Disk
     Fancy_laser     Printer   Really Expensive
     Cheap_laser     Printer   What a deal!
&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;
After cataloging the file and printer shares on a server, you can connect to a
specific share and manipulate it. Below are examples of several types of
transfers:

&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/smbclient-security-windows-printing-and-file-transfer" hreflang="und"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Tue, 28 Mar 2017 12:53:56 +0000</pubDate>
    <dc:creator>Charles Fisher</dc:creator>
    <guid isPermaLink="false">1339335 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
