cvs commit: BLFS/BOOK/server/other/samba samba-config-exp.xml samba-config.xml samba-desc.xml samba-inst.xml samba-intro.xml samba.ent

larry at larry at
Mon Aug 19 20:17:40 PDT 2002

larry       02/08/19 20:17:40

  Modified:    BOOK/basicnet/mailnews/slrn slrn-config.xml slrn-inst.xml
               BOOK/introduction/welcome changelog.xml credits.xml
               BOOK/server/other samba.xml
               BOOK/server/other/samba samba.ent
  Added:       BOOK/server/other/samba samba-config-exp.xml
                        samba-config.xml samba-desc.xml samba-inst.xml
  added samba-2.2.5
  Revision  Changes    Path
  1.2       +1 -1      BLFS/BOOK/basicnet/mailnews/slrn/slrn-config.xml
  Index: slrn-config.xml
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/mailnews/slrn/slrn-config.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- slrn-config.xml	10 Aug 2002 03:56:23 -0000	1.1
  +++ slrn-config.xml	20 Aug 2002 03:17:40 -0000	1.2
  @@ -12,7 +12,7 @@
  -<userinput> slrn -f $HOME/.jnewsrc --create && </userinput>
  +<userinput> slrn -f $HOME/.jnewsrc --create</userinput>
  1.2       +1 -1      BLFS/BOOK/basicnet/mailnews/slrn/slrn-inst.xml
  Index: slrn-inst.xml
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/mailnews/slrn/slrn-inst.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- slrn-inst.xml	10 Aug 2002 03:56:23 -0000	1.1
  +++ slrn-inst.xml	20 Aug 2002 03:17:40 -0000	1.2
  @@ -5,7 +5,7 @@
   <userinput>./configure --prefix=/usr --with-slrnpull &&
  -make &&
  +make LDFLAGS="-ldl" &&
   make install</userinput>
  1.2       +5 -0      BLFS/BOOK/basicnet/mailnews/slrn/slrn-intro.xml
  Index: slrn-intro.xml
  RCS file: /home/cvsroot/BLFS/BOOK/basicnet/mailnews/slrn/slrn-intro.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- slrn-intro.xml	10 Aug 2002 03:56:23 -0000	1.1
  +++ slrn-intro.xml	20 Aug 2002 03:17:40 -0000	1.2
  @@ -11,4 +11,9 @@
   spools as well as groups from an NNTP server.  Small local news spools
   can also be created with the use of the slrnpull program included in
   the slrn distribution.</para>
  +<screen>slrn depends on:
  +<xref linkend="slang"/>.</screen>
  1.74      +3 -0      BLFS/BOOK/introduction/welcome/changelog.xml
  Index: changelog.xml
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/changelog.xml,v
  retrieving revision 1.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- changelog.xml	20 Aug 2002 01:39:46 -0000	1.73
  +++ changelog.xml	20 Aug 2002 03:17:40 -0000	1.74
  @@ -10,6 +10,9 @@
  +<listitem><para>August 19th, 2002 [larry]: Server: Added Samba-2.2.5 and
  +modified slrn.</para></listitem>
   <listitem><para>August 19th, 2002 [larry]: X: Added
  1.29      +1 -1      BLFS/BOOK/introduction/welcome/credits.xml
  Index: credits.xml
  RCS file: /home/cvsroot/BLFS/BOOK/introduction/welcome/credits.xml,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- credits.xml	20 Aug 2002 01:39:46 -0000	1.28
  +++ credits.xml	20 Aug 2002 03:17:40 -0000	1.29
  @@ -91,7 +91,7 @@
   <listitem><para>db and lcms: <emphasis>Jeremy Jones and Mark
  -<listitem><para>emacs, libfam, pine, qmail and slrn: <emphasis>Billy O'Connor</emphasis></para></listitem>
  +<listitem><para>emacs, libfam, pine, qmail, Samba and slrn: <emphasis>Billy O'Connor</emphasis></para></listitem>
   <listitem><para>fetchmail and wvdial: <emphasis>Paul
  1.2       +8 -3      BLFS/BOOK/server/other/samba.xml
  Index: samba.xml
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/samba.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- samba.xml	7 Jul 2002 20:28:52 -0000	1.1
  +++ samba.xml	20 Aug 2002 03:17:40 -0000	1.2
  @@ -1,8 +1,13 @@
  -<sect1 id="samba" xreflabel="samba">
  +<sect1 id="samba" xreflabel="samba-&samba-version;">
   <?dbhtml filename="samba.html" dir="server"?>
  -<para>TO BE DONE</para>
  1.2       +12 -0     BLFS/BOOK/server/other/samba/samba.ent
  Index: samba.ent
  RCS file: /home/cvsroot/BLFS/BOOK/server/other/samba/samba.ent,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- samba.ent	7 Jul 2002 20:28:52 -0000	1.1
  +++ samba.ent	20 Aug 2002 03:17:40 -0000	1.2
  @@ -1 +1,13 @@
   <!ENTITY samba SYSTEM "../samba.xml">
  +<!ENTITY samba-intro SYSTEM "samba-intro.xml">
  +<!ENTITY samba-inst SYSTEM "samba-inst.xml">
  +<!ENTITY samba-exp SYSTEM "samba-exp.xml">
  +<!ENTITY samba-config-exp SYSTEM "samba-config-exp.xml">
  +<!ENTITY samba-desc SYSTEM "samba-desc.xml">
  +<!ENTITY samba-config SYSTEM "samba-config.xml">
  +<!ENTITY samba-buildsize "37 MB">
  +<!ENTITY samba-version "2.2.5">
  +<!ENTITY samba-download-http
  +<!ENTITY samba-download-ftp "">
  +<!ENTITY samba-size "5.3 MB">
  1.1                  BLFS/BOOK/server/other/samba/samba-config-exp.xml
  Index: samba-config-exp.xml
  <title>Configuration command explanations</title>
  cat > /etc/samba/smb.conf << "EOF"</userinput>
  Create a default Samba configuration file.  This configuration will
  allow Samba to act as a Primary Domain Controller for a Microsoft
  Windows based network.  If this is not desired, a simpler default
  smb.conf file is bundled with the Samba distribution.  See the
  file.  Primary Domain Controller configuration is slightly more
  complicated than ordinary member server configuration, so instructions
  for PDC configuration will be given here.</para>
  cat > /etc/rc.d/init.d/samba << "EOF" :</userinput>
  Create the Samba boot script, used to start and stop Samba
  automatically on machine startup and shutdown.</para>
  /usr/sbin/useradd -g 100 -d /dev/null -c \
      "Win2k Server" -s /bin/false win2kbox$ :
  This command creates a machine trust account, necessary only for
  Windows 2000/NT servers to authenticate to our new PDC.  Machine trust
  accounts are not necessary for Win95/98 clients.</para>
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc.
  Create the Samba boot scripts, used to start and stop Samba
  automatically on machine startup and shutdown.</para>
  1.1                  BLFS/BOOK/server/other/samba/samba-config.xml
  Index: samba-config.xml
  <title>Configuring Samba</title>
  <para>We will configure 1 Samba server(SAMBABOX) to act as a primary
  domain controller, as well as configure 1 domain client running
  Windows 2000 Server(WIN2KBOX) and acting as a member server of the
  domain.  Detailed instructions will be given for adding WIN2KBOX to
  the domain due to the extra steps necessary.  Instructions for adding
  Windows 95/98/XP clients can be found in the newly installed
  documentation by pointing a web browser to : </para>
  <sect3><title>Config files</title>
  /etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para>
  <para>First we set up some directories needed by Samba:</para>
  mkdir /var/lib/samba &&
  mkdir /var/lib/samba/netlogon &&
  mkdir /var/lib/samba/ntprofile &&
  mkdir /var/lib/samba/profiles &&
  chmod -R 1777 /var/lib/samba
  <para>And the Samba configuration file: </para>
  cat > /etc/samba/smb.conf << "EOF"
      netbios name = SAMBABOX
      workgroup = DOMAIN01
      os level = 64
      preferred master = yes
      domain master = yes
      local master = yes
      security = user
      encrypt passwords = yes
      domain logons = yes
      log file = /var/log/log.%m
      log level = 1
      logon path = \\%N\home\%u
      logon drive = H:
      logon home = \\homeserver\%u
      logon script = logon.cmd
        path = /var/lib/samba/netlogon
        read only = yes
        write list = ntadmin
        path = /var/lib/samba/ntprofile
        read only = no
        create mask = 0600
        directory mask = 0700
  ; World writable share for testing
  comment = Temporary file space
          path = /tmp
          read only = no
          public = yes
  comment = Users' home directories
          path = /home
          read only = no
          public = no
  <para>Now add the machine trust account for WIN2KBOX:</para>
  /usr/sbin/useradd -g 100 -d /dev/null -c \
      "machine nickname" -s /bin/false win2kbox$ &&
  passwd -l win2kbox$ &&
  smbpasswd -a -m win2kbox
  <para>Create the Samba boot script:</para>
  cat > /etc/rc.d/init.d/samba << "EOF"
  # Begin $rc_base/init.d/samba
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at
  source /etc/sysconfig/rc
  source $rc_functions
  case "$1" in
  		echo "Starting nmbd..."
  		loadproc /usr/sbin/nmbd
  		echo "Starting smbd..."
  		loadproc /usr/sbin/smbd
  		echo "Stopping smbd..."
  		killproc /usr/sbin/smbd
  		echo "Stopping nmbd..."
  		killproc /usr/sbin/nmbd
  		echo "Reloading smbd..."
  		reloadproc /usr/sbin/smbd
  		echo "Reloading nmbd..."
  		reloadproc /usr/sbin/nmbd
  		$0 stop
  		sleep 1
  		$0 start
  		statusproc /usr/sbin/nmbd
  		statusproc /usr/sbin/smbd
  		echo "Usage: $0 {start|stop|reload|restart|status}"
  		exit 1
  # End $rc_base/init.d/samba
  <para>Add the run level symlinks:</para>
  chmod 754 /etc/rc.d/init.d/samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K400samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc1.d/K400samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc2.d/K400samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc4.d/S600samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc5.d/S600samba &&
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc6.d/K400samba
  <para>Now, we'll use our new boot script to start Samba: </para>
  /etc/rc.d/init.d/samba start
  <para>We have to add the SAMBABOX root account to the Samba user list
  first in order to join WIN2KBOX to the DOMAIN01 domain: </para>
  smbpasswd -a root
  <para>After starting Samba and adding root to the Samba user list, the
  first machine we'll join to DOMAIN01 will be WIN2KBOX, the Windows
  2000 Server box we created the machine trust account for.  On
  1.  Right click on My Computer.
  2.  Click on Properties.
  3.  Click on the Network Identification notebook tab.
  4.  Click on the Properties button.
  5.  In the Computer Name: edit field enter WIN2KBOX.
  6.  Click on the Domain: radio button and enter DOMAIN01 in the edit
      field and click OK.
  7.  When presented with the Domain Username And Password dialog box,
      enter root and root's password on SAMBABOX and click OK.
  8.  After the machine trust is negotiated, click the OK button in the
      dialog box welcoming you to the DOMAIN01 domain.
  9.  Click OK in the reboot reminder dialog box.
  10. Click OK to close the System Properties window.
  11. Click Yes to reboot WIN2KBOX.
  <sect3><title>Add a new user to the DOMAIN01 domain.</title>
  <para>Before logging on to WIN2KBOX, we will create a new user with
      the following commands:</para>
  useradd -m win2kuser01 &&
  passwd win2kuser01 &&
  smbpasswd -a win2kuser01 
  <sect3><title>Logging on to DOMAIN01.</title>
  <para>Now we will log on the the domain as our newly created user as
  1. Press Ctrl-Alt-Del to bring up the Log On to Windows dialog box.
  2. Enter the win2kuser01 name and password.
  3. Select DOMAIN01 from the Log on to: combination box and click OK.
  <para>The Samba Web Administration Tool, swat, can be launched with the
  following command on SAMBABOX: </para>
  lynx http://localhost:901
  <note><para>Be sure inetd is running, and issue a killall -HUP inetd
  before starting swat.</para></note>
  <para>The lynx browser is used in this demonstration, but is not
  1.1                  BLFS/BOOK/server/other/samba/samba-desc.xml
  Index: samba-desc.xml
  <para>The Samba package contains
  <userinput>wbinfo</userinput> and
  <para>make_smbcodepage converts text descriptions of code pages to
  binary code page files nd vice versa.</para></sect3>
  <para>make_unicodemap converts text unicode map files to binary, for
  use in mapping characters to 16 bit unicode.</para></sect3>
  <para>nmbd is the Samba NetBIOS name server.</para></sect3>
  <para>nmblookup is used to query NetBIOS names and map them to IP
  <para>rpcclient is used to execute MS-RPC client side
  <para>smbcacls is used to manipulate NT access control
  <para>smbclient is a SMB/CIFS access utility, similar to
  <para>smbcontrol is used to control running smbd, nmbd and winbindd
  <para>smbd is the main Samba daemon.</para></sect3>
  <para>smbpasswd changes a user's Samba password.</para></sect3>
  <para>smbspool sends a print job to an SMB printer.</para></sect3>
  <para>smbstatus reports current Samba connections.</para></sect3>
  <para>swat is the Samba Web Administration Tool.</para></sect3>
  <para>testparm checks an smb.conf file for proper
  <para>testprns tests printer names.</para></sect3>
  <para>wbinfo queries a running winbindd daemon.</para></sect3>
  <para>winbindd resolves names from NT servers.</para></sect3>
  1.1                  BLFS/BOOK/server/other/samba/samba-inst.xml
  Index: samba-inst.xml
  <title>Installation of Samba</title>
  <para>Install Samba by running the following commands:</para>
  Samba is installed from the samba-&samba-version/source directory.
  mkdir /var/www &&
  mkdir /var/www/swat &&
  ./configure \
     --prefix=/usr \
     --libexecdir=/usr \
     --sysconfdir=/etc/samba \
     --with-privatedir=/etc/samba/private \
     --with-lockdir=/var/lock \
     --with-piddir=/var/run \
     --with-swatdir=/var/www/swat \
     --with-configdir=/etc/samba &&
  make &&
  make install &&
  mkdir /etc/samba &&
  mkdir /etc/samba/private &&
  echo "swat            901/tcp" >> /etc/services &&
  echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" \
      >> /etc/inetd.conf
  1.1                  BLFS/BOOK/server/other/samba/samba-intro.xml
  Index: samba-intro.xml
  <title>Introduction to Samba</title>
  <screen>Download location (HTTP):       <ulink url="&samba-download-http;"/>
  Version used:                   &samba-version;
  Package size:                   &samba-size;
  Estimated Disk space required:  &samba-buildsize;</screen>
  <para>The Samba package provides file and print services to SMB/CIFS
Unsubscribe: send email to listar at
and put 'unsubscribe blfs-book' in the subject header of the message

More information about the blfs-book mailing list