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 linuxfromscratch.org larry at linuxfromscratch.org
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
                        slrn-intro.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
                        samba-intro.xml
  Log:
  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 @@
   command:</para>
   
   <para><screen>
  -<userinput> slrn -f $HOME/.jnewsrc --create && </userinput>
  +<userinput> slrn -f $HOME/.jnewsrc --create</userinput>
   </screen></para>
   
   </sect3>
  
  
  
  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 @@
   
   <para><screen>
   <userinput>./configure --prefix=/usr --with-slrnpull &&
  -make &&
  +make LDFLAGS="-ldl" &&
   make install</userinput>
   </screen></para>
   
  
  
  
  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>
  +
  +
   </sect2>
  
  
  
  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 @@
   
   <itemizedlist>
   
  +<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
   sawfish-1.1a-gtk2.</para></listitem>
   
  
  
  
  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
   Hymers</emphasis></para></listitem>
   
  -<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
   Campbell</emphasis></para></listitem>
  
  
  
  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"?>
  -<title>samba</title>
  +<title>Samba-&samba-version;</title>
   
  -<para>TO BE DONE</para>
  +&samba-intro;
  +&samba-inst;
  +&samba-exp;
  +&samba-config;
  +&samba-config-exp;
  +&samba-desc;
   
   </sect1>
   
  
  
  
  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
  +"http://us1.samba.org/samba/ftp/samba-latest.tar.gz">
  +<!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
  ===================================================================
  <sect2>
  <title>Configuration command explanations</title>
  <para><userinput>
  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
  <filename>samba&samba-version/examples/smb.conf.default</filename>
  file.  Primary Domain Controller configuration is slightly more
  complicated than ordinary member server configuration, so instructions
  for PDC configuration will be given here.</para>
  
  
  <para><userinput>
  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>
  
  <para><userinput>
  /usr/sbin/useradd -g 100 -d /dev/null -c \
      "Win2k Server" -s /bin/false win2kbox$ :
  </userinput>
  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>
  
  <para>
  <userinput>
  ln -s  /etc/rc.d/init.d/samba /etc/rc.d/rc3.d/S600samba, etc.
  </userinput>
  Create the Samba boot scripts, used to start and stop Samba
  automatically on machine startup and shutdown.</para>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/other/samba/samba-config.xml
  
  Index: samba-config.xml
  ===================================================================
  <sect2>
  <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>
  
  <para><screen><userinput>
  file:///var/www/swat/using_samba/ch03_01.html#ch03-55770
  .</userinput></screen></para>
  
  <sect3><title>Config files</title>
  <para><userinput>
  /etc/samba/smb.conf, /etc/rc.d/init.d/samba </userinput></para>
  
  <para>First we set up some directories needed by Samba:</para>
  <para><screen><userinput>
  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
  </userinput></screen></para>
  
  <para>And the Samba configuration file: </para>
  <para><screen><userinput>
  cat > /etc/samba/smb.conf << "EOF"
  [global]
      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
  [netlogon]
        path = /var/lib/samba/netlogon
        read only = yes
        write list = ntadmin
  [profiles]
        path = /var/lib/samba/ntprofile
        read only = no
        create mask = 0600
        directory mask = 0700
  ; World writable share for testing
  [tmp]
  comment = Temporary file space
          path = /tmp
          read only = no
          public = yes
  [home]
  comment = Users' home directories
          path = /home
          read only = no
          public = no
  EOF
  </userinput></screen></para>
  
  <para>Now add the machine trust account for WIN2KBOX:</para>
  <para><screen><userinput>
  /usr/sbin/useradd -g 100 -d /dev/null -c \
      "machine nickname" -s /bin/false win2kbox$ &&
  passwd -l win2kbox$ &&
  smbpasswd -a -m win2kbox
  </userinput></screen></para>
  
  <para>Create the Samba boot script:</para>
  <para><screen><userinput>
  cat > /etc/rc.d/init.d/samba << "EOF"
  #!/bin/bash
  # Begin $rc_base/init.d/samba
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  source /etc/sysconfig/rc
  source $rc_functions
  case "$1" in
  	start)
  		echo "Starting nmbd..."
  		loadproc /usr/sbin/nmbd
  		echo "Starting smbd..."
  		loadproc /usr/sbin/smbd
  		;;
  	stop)
  		echo "Stopping smbd..."
  		killproc /usr/sbin/smbd
  		echo "Stopping nmbd..."
  		killproc /usr/sbin/nmbd
  		;;
  	reload)
  		echo "Reloading smbd..."
  		reloadproc /usr/sbin/smbd
  		echo "Reloading nmbd..."
  		reloadproc /usr/sbin/nmbd
  		;;
  	restart)
  		$0 stop
  		sleep 1
  		$0 start
  		;;
  	status)
  		statusproc /usr/sbin/nmbd
  		statusproc /usr/sbin/smbd
  		;;
  	*)
  		echo "Usage: $0 {start|stop|reload|restart|status}"
  		exit 1
  		;;
  esac
  # End $rc_base/init.d/samba
  EOF
  
  </userinput></screen></para>
  <para>Add the run level symlinks:</para>
  <para><screen><userinput>
  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
  </userinput></screen></para>
  
  <para>Now, we'll use our new boot script to start Samba: </para>
  <para><screen><userinput>
  /etc/rc.d/init.d/samba start
  </userinput></screen></para>
  <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>
  
  <para><screen><userinput>
  smbpasswd -a root
  </userinput></screen></para>
  
  <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
  WIN2KBOX:</para><para><screen><userinput>
  
  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.
  </userinput></screen></para></sect3>
  
  <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>
  <para><screen><userinput>
  useradd -m win2kuser01 &&
  passwd win2kuser01 &&
  smbpasswd -a win2kuser01 
  </userinput></screen></para></sect3>
  
  <sect3><title>Logging on to DOMAIN01.</title>
  <para>Now we will log on the the domain as our newly created user as
      follows:</para> 
  <para><screen><userinput>
  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.
  </userinput></screen></para>
  
  <para>The Samba Web Administration Tool, swat, can be launched with the
  following command on SAMBABOX: </para>
  <para><screen><userinput>
  lynx http://localhost:901
  </userinput></screen></para>
  <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
  necessary.</para></sect3>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/other/samba/samba-desc.xml
  
  Index: samba-desc.xml
  ===================================================================
  <sect2>
  <title>Contents</title>
  
  <para>The Samba package contains
  <userinput>make_smbcodepage</userinput>,
  <userinput>make_unicodemap</userinput>,
  <userinput>nmbd</userinput>,
  <userinput>nmblookup</userinput>,
  <userinput>rpcclient</userinput>,
  <userinput>smbcacls</userinput>,
  <userinput>smbclient</userinput>,
  <userinput>smbcontrol</userinput>,
  <userinput>smbd</userinput>,
  <userinput>smbpasswd</userinput>,
  <userinput>smbspool</userinput>,
  <userinput>smbstatus</userinput>,
  <userinput>swat</userinput>,
  <userinput>testparm</userinput>,
  <userinput>testprns</userinput>,
  <userinput>wbinfo</userinput> and
  <userinput>winbindd.</userinput></para>
  
  </sect2>
  
  <sect2><title>Description</title>
  
  <sect3><title>make_smbcodepage</title>
  <para>make_smbcodepage converts text descriptions of code pages to
  binary code page files nd vice versa.</para></sect3>
  <sect3><title>make_unicodemap</title>
  <para>make_unicodemap converts text unicode map files to binary, for
  use in mapping characters to 16 bit unicode.</para></sect3>
  <sect3><title>nmbd</title>
  <para>nmbd is the Samba NetBIOS name server.</para></sect3>
  <sect3><title>nmblookup</title>
  <para>nmblookup is used to query NetBIOS names and map them to IP
  addresses.</para></sect3>
  <sect3><title>rpcclient</title>
  <para>rpcclient is used to execute MS-RPC client side
  functions.</para></sect3>
  <sect3><title>smbcacls</title>
  <para>smbcacls is used to manipulate NT access control
  lists.</para></sect3>
  <sect3><title>smbclient</title>
  <para>smbclient is a SMB/CIFS access utility, similar to
  FTP.</para></sect3>
  <sect3><title>smbcontrol</title>
  <para>smbcontrol is used to control running smbd, nmbd and winbindd
  daemons.</para></sect3>
  <sect3><title>smbd</title>
  <para>smbd is the main Samba daemon.</para></sect3>
  <sect3><title>smbpasswd</title>
  <para>smbpasswd changes a user's Samba password.</para></sect3>
  <sect3><title>smbspool</title>
  <para>smbspool sends a print job to an SMB printer.</para></sect3>
  <sect3><title>smbstatus</title>
  <para>smbstatus reports current Samba connections.</para></sect3>
  <sect3><title>swat</title>
  <para>swat is the Samba Web Administration Tool.</para></sect3>
  <sect3><title>testparm</title>
  <para>testparm checks an smb.conf file for proper
  syntax.</para></sect3>
  <sect3><title>testprns</title>
  <para>testprns tests printer names.</para></sect3>
  <sect3><title>wbinfo</title>
  <para>wbinfo queries a running winbindd daemon.</para></sect3>
  <sect3><title>winbindd</title>
  <para>winbindd resolves names from NT servers.</para></sect3>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/other/samba/samba-inst.xml
  
  Index: samba-inst.xml
  ===================================================================
  <sect2>
  <title>Installation of Samba</title>
  
  <para>Install Samba by running the following commands:</para>
  <note><para>
  Samba is installed from the samba-&samba-version/source directory.
  </para></note>
  
  <para><screen><userinput>
  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
  </userinput></screen></para>
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/server/other/samba/samba-intro.xml
  
  Index: samba-intro.xml
  ===================================================================
  <sect2>
  <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
  clients.</para></sect2>
  
  
  
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe blfs-book' in the subject header of the message



More information about the blfs-book mailing list