By Jay Ts, Robert Eckstein, David Collier-Brown
Cover | Table of Contents | Colophon
toltec,
and a pair of Windows clients, to which we will assign the names
maya and aztec, all connected
via a local area network (LAN). Let's also assume
that toltec also has a local inkjet printer
connected to it, lp, and a disk share named
spirit—both of which it can offer to the
other two computers. A graphic of this network is shown in Figure 1-1.
\\toltec\spirit\
|
Role
|
Can perform?
|
|---|---|
|
File server
|
Yes
|
|
Printer server
|
Yes
|
|
Microsoft Dfs server
|
Yes
|
|
Primary domain controller
|
Yes
|
|
Backup domain controller
|
No
|
|
Active Directory domain controller
|
No
|
|
Windows 95/98/Me authentication
|
Yes
|
|
Windows NT/2000/XP authentication
|
Yes
|
|
Local master browser
|
Yes
|
|
Local backup browser
|
Yes
|
|
Domain master browser
|
http://www.samba.org/. From there, you
can select a mirror site that is geographically near you.$ smbd -V
Version 2.2.6
$ smbd -V
Version 2.2.6
$ rpm -qa | grep samba
samba-client-2.0.8-1.7.1
samba-2.0.8-1.7.1
samba-common-2.0.8-1.7.1
http://www.samba.org. Once connected to this
page, you'll see links to several Samba mirror sites
across the world, both for the standard Samba web pages and for sites
devoted exclusively to downloading Samba. For the best performance,
choose a site that is closest to your own geographic location.samba-latest.tar.gz
$ tar xvfz samba-latest.tar.gz
$ gunzip samba-latest.tar.gz $ tar xvf samba-latest.tar
$ configure; make; make install
configure: warning: running as non-root will disable some tests
# ./configure | more
# ./configure --with-winbind
# ./configure --help
--
with-
feature
option, which will cause the feature to be compiled and installed.
Likewise, if you specify a
make
on the command line. The
make
utility will produce a stream of
explanatory and success messages, beginning with:Using FLAGS = -O -Iinclude ...
# make 2>&1 | tee make.log Using FLAGS = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE64 _SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOGFILEBASE="/usr/local/samba/va r" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTSFILE="/usr/local/samba/ lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/bin " -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/usr/local/samba/lib/cod epages" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -DBINDIR="/usr/local/sa mba/bin" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd" -DSMB_PASSWD_FILE="/u sr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr/local/samba/private/sm bpasswd.tdb" Using FLAGS32 = -O -Iinclude -I./include -I./ubiqx -I./smbwrapper -D_LARGEFILE 64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DLOGFILEBASE="/usr/local/samba/ var" -DCONFIGFILE="/usr/local/samba/lib/smb.conf" -DLMHOSTSFILE="/usr/local/samb a/lib/lmhosts" -DSWATDIR="/usr/local/samba/swat" -DSBINDIR="/usr/local/samba/b in" -DLOCKDIR="/usr/local/samba/var/locks" -DCODEPAGEDIR="/usr/local/samba/lib/c odepages" -DDRIVERFILE="/usr/local/samba/lib/printers.def" -DBINDIR="/usr/local/ samba/bin" -DHAVE_INCLUDES_H -DPASSWD_PROGRAM="/bin/passwd" -DSMB_PASSWD_FILE=" /usr/local/samba/private/smbpasswd" -DTDB_PASSWD_FILE="/usr/local/samba/private/ smbpasswd.tdb" Using LIBS = -ldl -lnsl -lpam Compiling smbd/server.c Compiling smbd/files.c Compiling smbd/chgpasswd.c Compiling smbd/connection.c Compiling smbd/utmp.c Compiling smbd/session.c Compiling smbd/dfree.c Compiling smbd/dir.c
swat 901/tcp
swat stream tcp nowait root /usr/local/samba/bin/swat swat
# /bin/kill -HUP -a inetd
# killall -HUP inetd
# ps ax | grep inetd[global]
workgroup = METRAN
[test]
comment = For testing only, please
path = /usr/local/samba/tmp
read only = no
guest ok = yes
# /usr/local/samba/bin/smbd -D # /usr/local/samba/bin/nmbd -D
if [ -x /usr/local/samba/bin/smbd]; then
echo "Starting smbd..."
/usr/local/samba/bin/smbd -D
echo "Starting nmbd..."
/usr/local/samba/bin/nmbd -D
fi
# /usr/local/samba/bin/smbclient -U% -L localhost
added interface ip=172.16.1.1 bcast=172.16.1.255 nmask=255.255.255.0
Domain=[METRAN] OS=[Unix] Server=[Samba 2.2.6]
Sharename Type Comment
--------- ---- -------
test Disk For testing only, please
IPC$ IPC IPC Service (Samba 2.2.6)
ADMIN$ Disk IPC Service (Samba 2.2.6)
Server Comment
--------- -------
TOLTEC Samba 2.2.6 on toltec
Workgroup Master
--------- -------
METRAN TOLTEC
Administrator or another user in the
Administrators group.
Administrator or another user in the
Administrators group.
Administrator or another user in the
Administrators group.