07.06.2014 Views

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

2 - Raspberry PI Community Projects

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

11.5.1. Samba Server<br />

The samba package contains the main two servers of Samba 3, smbd and nmbd.<br />

TOOL<br />

Administrating Samba with<br />

SWAT<br />

SWAT (Samba Web Administration Tool) is a web interface that allows configuring<br />

the Samba service. Since the swat package does not enable its configuration<br />

interface by default, it must be enabled manually with update-inetd<br />

--enable swat.<br />

SWAT then becomes available at the hp://localhost:901 URL. Accessing it<br />

means using the root account (and its usual password). Note that SWAT<br />

rewrites the smb.conf in its own idiom, so it makes sense to make a backup<br />

copy beforehand if you're only interested in testing this tool.<br />

SWAT is very user-friendly; its interface includes an assistant that allows<br />

defining the server's role in three questions. All global options can still be configured,<br />

as well as those for all the existing shares, and of course new shares<br />

can be added. Each option comes with a link to the relevant documentation.<br />

DOCUMENTATION<br />

Going further<br />

The Samba server is extremely configurable and versatile, and can address<br />

a great many different use cases matching very different requirements and<br />

network architectures. This book only focuses on the use case where Samba<br />

is used as main domain controller, but it can also be a simple server on the<br />

domain and delegate authentication to the main controller (which could be a<br />

Windows server).<br />

The documentation available in the samba-doc package is very well wrien. In<br />

particular, the Samba 3 By Example document (available as /usr/share/doc/<br />

samba-doc/htmldocs/Samba3-ByExample/index.html) deals with a concrete<br />

use case that evolves alongside the growing company.<br />

TOOL<br />

Authenticating with a<br />

Windows Server<br />

Winbind gives system administrators the option of using a Windows NT server<br />

as an authentication server. Winbind also integrates cleanly with PAM and<br />

NSS. This allows seing up Linux machines where all users of an NT domain<br />

automatically get an account.<br />

More information can be found in the /usr/share/doc/samba-doc/htmldocs/<br />

Samba3-HOWTO/winbind.html file.<br />

11.5.1.1. Configuring with debconf<br />

The package sets up a minimal configuration based on the answers to a few Debconf questions<br />

asked during the initial installation; this configuration step can be replayed later with dpkgreconfigure<br />

samba-common samba.<br />

The first piece of required information is the name of the workgroup where the Samba server<br />

will belong (the answer is FALCOTNET in our case). Another question asks whether passwords<br />

should be encrypted. The answer is that they should, because it's a requirement for the most<br />

recent Windows clients; besides, this increases security. The counterpart is that this required<br />

managing Samba passwords separately from the Unix passwords.<br />

280 The Debian Administrator's Handbook

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!