From 677a0f7b622af2726d9b748435d6a35cd821a2a1 Mon Sep 17 00:00:00 2001 From: Larry Lawrence Date: Sat, 5 Apr 2003 16:32:17 +0000 Subject: [PATCH] updated to samba-2.2.8 git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@824 af4574ff-66df-0310-9fd7-8a98e5e911e0 --- introduction/welcome/changelog.xml | 5 +- server/mail/exim/exim-config.xml | 6 +- server/mail/exim/exim-exp.xml | 15 ++--- server/mail/qmail/qmail-config.xml | 8 +-- server/mail/sendmail/sendmail-config.xml | 4 +- server/mail/sendmail/sendmail-inst.xml | 4 +- server/other/bind/bind-config-exp.xml | 29 +++------ server/other/bind/bind-config.xml | 73 ++++++++--------------- server/other/cvsserver/cvsserver-exp.xml | 19 +++--- server/other/cvsserver/cvsserver-inst.xml | 10 ++-- server/other/dhcp/dhcp-exp.xml | 5 +- server/other/dhcp/dhcp-inst.xml | 2 +- server/other/leafnode/leafnode-config.xml | 8 +-- server/other/leafnode/leafnode-exp.xml | 12 ++-- server/other/openldap/openldap-desc.xml | 5 +- server/other/openldap/openldap-exp.xml | 10 ++-- server/other/openldap/openldap-intro.xml | 3 +- server/other/openldap/openldap.ent | 3 +- server/other/openssh/openssh-config.xml | 2 +- server/other/openssh/openssh-exp.xml | 6 +- server/other/samba/samba-config-exp.xml | 19 +++--- server/other/samba/samba-config.xml | 20 +++---- server/other/samba/samba-desc.xml | 2 +- server/other/samba/samba-exp.xml | 14 ++--- server/other/samba/samba-intro.xml | 1 + server/other/samba/samba.ent | 5 +- server/other/xinetd/xinetd-config.xml | 4 +- server/other/xinetd/xinetd-desc.xml | 2 +- 28 files changed, 125 insertions(+), 171 deletions(-) diff --git a/introduction/welcome/changelog.xml b/introduction/welcome/changelog.xml index e08ad915e3..8ae38d59ad 100644 --- a/introduction/welcome/changelog.xml +++ b/introduction/welcome/changelog.xml @@ -10,7 +10,10 @@ page in Chapter 1 for details on who wrote what. -April 5th, 2003 [larry]: servers: Update to +April 5th, 2003 [larry]: server: updated to +samba-2.2.8. + +April 5th, 2003 [larry]: server: Update to sendmail-8.12.9. April 5th, 2003 [tushar]: openldap: Updated to 2.1.17. diff --git a/server/mail/exim/exim-config.xml b/server/mail/exim/exim-config.xml index f58a6a0f6e..df3eb65ab2 100644 --- a/server/mail/exim/exim-config.xml +++ b/server/mail/exim/exim-config.xml @@ -8,11 +8,11 @@ Configuration of exim Create the exim configuration files with the following commands: -cat >> /etc/aliases << "EOF" +cat >> /etc/aliases << "EOF" postmaster: root MAILER-DAEMON: root -EOF -exim -v -bi +EOF +exim -v -bi && /usr/sbin/exim -bd -q1m To protect an existing /etc/aliases diff --git a/server/mail/exim/exim-exp.xml b/server/mail/exim/exim-exp.xml index d565c3faff..071d119670 100644 --- a/server/mail/exim/exim-exp.xml +++ b/server/mail/exim/exim-exp.xml @@ -1,28 +1,23 @@ Installation command explanations - + groupadd exim -useradd -g exim exim : +useradd -g exim exim Create the group and user exim which will run the the exim daemon. - -sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \ +sed -e 's/^BIN_DIR.*$/BIN_DIRECTORY=\/usr\/sbin/' src/EDITME | \ sed -e 's/^CONF.*$/CONFIGURE_FILE=\/etc\/exim.conf/' | \ sed -e 's/^EXIM_USER.*$/EXIM_USER=exim/' | \ - sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile : - - + sed -e 's/^EXIM_MONITOR/#EXIM_MONITOR/' > Local/Makefile Many of exim's configuration options are compiled in. Here, we specify the minimum set of options, BIN_DIRECTORY, CONFIGURE_FILE and EXIM_USER. We also defer building the exim monitor program, which requires X windows support, by commenting out the EXIM_MONITOR line in the Makefile. - ln -s /usr/sbin/exim /usr/sbin/sendmail : - -Create a link to sendmail for applications which need it. exim will +ln -s /usr/sbin/exim /usr/sbin/sendmail : Create a link to sendmail for applications which need it. exim will accept most Sendmail command line options. diff --git a/server/mail/qmail/qmail-config.xml b/server/mail/qmail/qmail-config.xml index 9e6a3f31e6..dafcedc4ea 100644 --- a/server/mail/qmail/qmail-config.xml +++ b/server/mail/qmail/qmail-config.xml @@ -16,7 +16,7 @@ tcp-env /var/qmail/bin/qmail-smtpd" >> /etc/inetd.confIf xinetd is used, the following command will add the qmaild entry to /etc/xinetd.conf: -cat >> /etc/xinetd.conf << "EOF" +cat >> /etc/xinetd.conf << "EOF" service smtp { disable = no @@ -31,12 +31,12 @@ service smtp only_from = 127.0.0.1 log_on_failture += USERID } -EOF +EOF To automate the running of qmail, use following command to create the init.d script: -cat > /etc/rc.d/init.d/qmail << "EOF" +cat > /etc/rc.d/init.d/qmail << "EOF" #!/bin/sh # Begin $rc_base/init.d/qmail @@ -71,7 +71,7 @@ case "$1" in esac # End $rc_base/init.d/qmail -EOF +EOF chmod 755 /etc/rc.d/init.d/qmail Create the symbolic links to this file in the relevant rc.d directory with the following commands: diff --git a/server/mail/sendmail/sendmail-config.xml b/server/mail/sendmail/sendmail-config.xml index 2e0a3c5ef8..b1963df845 100644 --- a/server/mail/sendmail/sendmail-config.xml +++ b/server/mail/sendmail/sendmail-config.xml @@ -9,10 +9,10 @@ Configuring sendmail echo `hostname` > /etc/mail/local-host-names -cat > /etc/mail/aliases << "EOF" +cat > /etc/mail/aliases << "EOF" postmaster: root MAILER-DAEMON: root -EOF +EOF cd /etc/mail && cp -R /usr/src/sendmail-&sendmail-version;/cf/* . && cp -R /usr/src/sendmail-&sendmail-version;/cf/cf/submit.mc . && diff --git a/server/mail/sendmail/sendmail-inst.xml b/server/mail/sendmail/sendmail-inst.xml index 81beb7911c..68bb302137 100644 --- a/server/mail/sendmail/sendmail-inst.xml +++ b/server/mail/sendmail/sendmail-inst.xml @@ -12,13 +12,13 @@ mkdir /var/spool/mqueue Install sendmail with the following commands: -cat > devtools/Site/site.config.m4 << "EOF" +cat > devtools/Site/site.config.m4 << "EOF" define(`confMANGRP',`root') define(`confMANOWN',`root') define(`confSBINGRP',`root') define(`confUBINGRP',`root') define(`confUBINOWN',`root') -EOF +EOF cd sendmail && sh Build && cd ../cf/cf && diff --git a/server/other/bind/bind-config-exp.xml b/server/other/bind/bind-config-exp.xml index 4eee1a20c5..19e8748087 100644 --- a/server/other/bind/bind-config-exp.xml +++ b/server/other/bind/bind-config-exp.xml @@ -8,36 +8,25 @@ mknod /home/named/dev/null c 1 3 mknod /home/named/dev/random c 1 8 chmod 666 /home/named/dev/{null,random} mkdir /home/named/etc/namedb/pz -cp /etc/localtime /home/named/etc : - +cp /etc/localtime /home/named/etc Create the unprivileged user and group named, along with device files that named will need access to inside the chroot jail. - -cat > /home/named/etc/named.conf << "EOF" : -Create the BIND configuration file, from which named will read the +cat > /home/named/etc/named.conf << +"EOF" : Create the BIND configuration file, from which named will read the location of zone files, root nameservers and secure DNS keys. - -cat > /home/named/etc/namedb/pz/127.0.0 << "EOF" : -Create a single zone file. - -cat > /home/named/etc/namedb/root.hints << "EOF" : -The root.hints file is a list of root nameservers. This file must be +cat > /home/named/etc/namedb/pz/127.0.0 << "EOF" : Create a single zone file. +cat > /home/named/etc/namedb/root.hints << "EOF" : The root.hints file is a list of root nameservers. This file must be updated periodically with the dig utility. Consult the BIND 9 Administrator Reference Manual for details. - -cat > /etc/rndc.conf << "EOF" : -The rndc.conf file contains information for controlling named +cat > /etc/rndc.conf << "EOF" : The rndc.conf file contains information for controlling named operations with the rndc utility. - -cat > /etc/resolv.conf << "EOF" : -The resolv.conf file will specify the local host(127.0.0.1) as the +cat > /etc/resolv.conf << "EOF" : The resolv.conf file will specify the local host(127.0.0.1) as the nameserver. - -cat > /etc/rc.d/init.d/bind << "EOF" : -Create the boot script for BIND 9, used to start and stop the name +cat > /etc/rc.d/init.d/bind << +"EOF" : Create the boot script for BIND 9, used to start and stop the name server daemon, named. diff --git a/server/other/bind/bind-config.xml b/server/other/bind/bind-config.xml index 17c18603f3..314c3e09f4 100644 --- a/server/other/bind/bind-config.xml +++ b/server/other/bind/bind-config.xml @@ -7,8 +7,7 @@ directory First we set up some files and directories needed by BIND: - -groupadd -g 200 named && +groupadd -g 200 named && useradd -m -g named -u 200 -s /bin/false named && cd /home/named && mkdir -p dev etc/namedb/slave var/run && @@ -16,16 +15,15 @@ mknod /home/named/dev/null c 1 3 && mknod /home/named/dev/random c 1 8 && chmod 666 /home/named/dev/{null,random} && mkdir /home/named/etc/namedb/pz && -cp /etc/localtime /home/named/etc - +cp /etc/localtime /home/named/etc Config files -named.conf, root.hints, 127.0.0, rndc.conf - +named.conf, +root.hints, 127.0.0 and +rndc.conf Create the named.conf file with the following commands: - -cat > /home/named/etc/named.conf << "EOF" +cat > /home/named/etc/named.conf << "EOF" options { directory "/etc/namedb"; pid-file "/var/run/named.pid"; @@ -47,11 +45,9 @@ cat > /home/named/etc/named.conf << "EOF" type master; file "pz/127.0.0"; }; -EOF - +EOF Create a zone file with the following contents: - -cat > /home/named/etc/namedb/pz/127.0.0 << "EOF" +cat > /home/named/etc/namedb/pz/127.0.0 << "EOF" $TTL 3D @ IN SOA ns.local.domain. hostmaster.local.domain. ( 1 ; Serial @@ -61,14 +57,12 @@ $TTL 3D 1D) ; Minimum TTL NS ns.local.domain. 1 PTR localhost. -EOF - +EOF Create the root.hints file with the following commands: Caution must be used to insure no leading spaces in this file. - -cat > /home/named/etc/namedb/root.hints << "EOF" +cat > /home/named/etc/namedb/root.hints << "EOF" . 6D IN NS A.ROOT-SERVERS.NET. . 6D IN NS B.ROOT-SERVERS.NET. . 6D IN NS C.ROOT-SERVERS.NET. @@ -95,12 +89,10 @@ J.ROOT-SERVERS.NET. 6D IN A 192.58.128.30 K.ROOT-SERVERS.NET. 6D IN A 193.0.14.129 L.ROOT-SERVERS.NET. 6D IN A 198.32.64.12 M.ROOT-SERVERS.NET. 6D IN A 202.12.27.33 -EOF - +EOF Create the rndc.conf with the following commands: - -cat > /etc/rndc.conf << "EOF" +cat > /etc/rndc.conf << "EOF" key rndc_key { algorithm "hmac-md5"; secret @@ -110,31 +102,25 @@ options { default-server localhost; default-key rndc_key; }; -EOF - +EOF Create or modify resolv.conf to use the new nameserver with the following commands: Replace yourdomain.com with your own valid domain name. - -cp /etc/resolv.conf /etc/resolv.conf.bak -cat > /etc/resolv.conf << "EOF" +cp /etc/resolv.conf /etc/resolv.conf.bak && +cat > /etc/resolv.conf << "EOF" search yourdomain.com nameserver 127.0.0.1 -EOF - +EOF Set permissions on the chroot jail with the following command: - -chown -R named.named /home/named - +chown -R named.named /home/named Create the BIND boot script: - -cat > /etc/rc.d/init.d/bind << "EOF" +cat > /etc/rc.d/init.d/bind << "EOF" #!/bin/bash # Begin $rc_base/init.d/bind # Based on sysklogd script from LFS-3.1 and earlier. @@ -170,39 +156,30 @@ case "$1" in ;; esac # End $rc_base/init.d/bind -EOF - +EOF Add the run level symlinks: - -chmod 754 /etc/rc.d/init.d/bind && +chmod 754 /etc/rc.d/init.d/bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc0.d/K49bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc1.d/K49bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc2.d/K49bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc3.d/S22bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc4.d/S22bind && ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc5.d/S22bind && -ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind - +ln -s /etc/rc.d/init.d/bind /etc/rc.d/rc6.d/K49bind Now start BIND with the new boot script: - -/etc/rc.d/init.d/bind start - +/etc/rc.d/init.d/bind start Testing BIND Test out the new BIND 9 installation. First query the local host address with dig: - -dig -x 127.0.0.1 - +dig -x 127.0.0.1 Now try an external name lookup, taking note of the speed difference in repeated lookups due to the caching. Run the dig command twice on the same address: - -dig beyond.linuxfromscratch.org && -dig beyond.linuxfromscratch.org - +dig beyond.linuxfromscratch.org && +dig beyond.linuxfromscratch.org You can see almost instantaneous results with the named caching lookups. Consult bind-&bind-version;/doc/arm/Bv9ARM.html, the BIND Administrator Reference Manual for further configuration options. diff --git a/server/other/cvsserver/cvsserver-exp.xml b/server/other/cvsserver/cvsserver-exp.xml index ee9b304323..369f70845f 100644 --- a/server/other/cvsserver/cvsserver-exp.xml +++ b/server/other/cvsserver/cvsserver-exp.xml @@ -1,20 +1,20 @@ Command explanations -mkdir /cvsroot : Create the CVS repository +mkdir /cvsroot : Create the CVS repository directory. -chmod 1777 /cvsroot : Sticky bit +chmod 1777 /cvsroot : Sticky bit permissions for CVSROOT. -export CVSROOT=/cvsroot : Specify new +export CVSROOT=/cvsroot : Specify new CVSROOT for all cvs commands. -cvs init : Initialize the new CVS +cvs init : Initialize the new CVS repository. cvs import -m "repository test" cvstest vendortag -releasetag : All source code modules must be imported +releasetag : All source code modules must be imported into the CVS repository before use, with the cvs import command. the -m flags specifies an initial descriptive entry for the new module. the "cvstest" parameter is the name used for the module in all @@ -23,15 +23,14 @@ are used to further identify each CVS module and are mandatory whether used or not. (grep anonymous /etc/passwd || useradd anonymous -s -/bin/false) : Check for an existing anonymous user and +/bin/false) : Check for an existing anonymous user and create one if not found. -echo anonymous: > /cvsroot/CVSROOT/passwd -: Add the anonymous user to the CVS passwd file, which is +echo anonymous: > /cvsroot/CVSROOT/passwd + : Add the anonymous user to the CVS passwd file, which is unused for anything else in this configuration. -echo anonymous > /cvsroot/CVSROOT/readers : - Add the anonymous user to the CVS readers file, a list of +echo anonymous > /cvsroot/CVSROOT/readers : Add the anonymous user to the CVS readers file, a list of users who have read only access to the repository. diff --git a/server/other/cvsserver/cvsserver-inst.xml b/server/other/cvsserver/cvsserver-inst.xml index 9d77a12bce..1a80e251c0 100644 --- a/server/other/cvsserver/cvsserver-inst.xml +++ b/server/other/cvsserver/cvsserver-inst.xml @@ -16,7 +16,7 @@ end of this section. logged in as root: mkdir /cvsroot && chmod 1777 /cvsroot && -export CVSROOT=/cvsroot +export CVSROOT=/cvsroot && cvs init 2. Import source code into the repository. @@ -55,8 +55,8 @@ cvs -d:ext:servername:/cvsroot co cvstest commands: (grep anonymous /etc/passwd || useradd anonymous -s /bin/false) && -echo anonymous: > /cvsroot/CVSROOT/passwd && -echo anonymous > /cvsroot/CVSROOT/readers +echo anonymous: > /cvsroot/CVSROOT/passwd && +echo anonymous > /cvsroot/CVSROOT/readers If you use inetd, the following command will add the pserver entry to /etc/inetd.conf: @@ -70,7 +70,7 @@ file. If you use xinetd, the following command will add the pserver entry to /etc/xinetd.conf: -cat >> /etc/xinetd.conf << "EOF" +cat >> /etc/xinetd.conf << "EOF" service cvspserver { port = 2401 @@ -82,7 +82,7 @@ entry to /etc/xinetd.conf: server = /usr/bin/cvs server_args = -f --allow-root=/cvsroot pserver } -EOF +EOF Issue a killall -HUP xinetd to reread the changed xinetd.conf file. diff --git a/server/other/dhcp/dhcp-exp.xml b/server/other/dhcp/dhcp-exp.xml index 09f486e385..efee26e7ae 100644 --- a/server/other/dhcp/dhcp-exp.xml +++ b/server/other/dhcp/dhcp-exp.xml @@ -1,10 +1,7 @@ Command explanations -make CC="gcc $CFLAGS" : This makes dhcp -compile using our CFLAGS for optimizations. - -LIBDIR=/usr/lib INCDIR=/usr/include : This +LIBDIR=/usr/lib INCDIR=/usr/include : This command installs the library and include files in /usr instead of /usr/local. diff --git a/server/other/dhcp/dhcp-inst.xml b/server/other/dhcp/dhcp-inst.xml index 06bce4ea42..155d4021c1 100644 --- a/server/other/dhcp/dhcp-inst.xml +++ b/server/other/dhcp/dhcp-inst.xml @@ -4,7 +4,7 @@ Install dhcp by running the following commands: ./configure && -make CC="gcc $CFLAGS" && +make && make LIBDIR=/usr/lib INCDIR=/usr/include install diff --git a/server/other/leafnode/leafnode-config.xml b/server/other/leafnode/leafnode-config.xml index 4d324bb159..862721afa9 100644 --- a/server/other/leafnode/leafnode-config.xml +++ b/server/other/leafnode/leafnode-config.xml @@ -2,8 +2,8 @@ Configuring leafnode Config files -/etc/leafnode/config, -/etc/inetd.conf, /etc/xinetd.conf +/etc/leafnode/config, +/etc/inetd.conf and /etc/xinetd.conf leafnode may be configured to use inetd or xinetd as follows: @@ -17,7 +17,7 @@ file with the following command: xinetd configuration Add a leafnode entry to the /etc/xinetd.conf file with the following command: -cat >> /etc/xinetd.conf << "EOF" +cat >> /etc/xinetd.conf << "EOF" service nntp { flags = NAMEINARGS NOLIBWRAP @@ -30,7 +30,7 @@ file with the following command: instances = 7 per_source = 3 } -EOF +EOF The /etc/news/config file must be edited to reflect the name of the upstream NNTP provider. Copy the diff --git a/server/other/leafnode/leafnode-exp.xml b/server/other/leafnode/leafnode-exp.xml index d12b612c37..3d64556929 100644 --- a/server/other/leafnode/leafnode-exp.xml +++ b/server/other/leafnode/leafnode-exp.xml @@ -9,21 +9,17 @@ useradd -g news news : resulting from an already existing user or group news may be ignored. - --prefix=/usr : -Change the default installation directory of /usr/local. + --prefix=/usr : Change the default installation directory of /usr/local. - --localstatedir=/var : -Change the default spool directory of /usr/var. + --localstatedir=/var : Change the default spool directory of /usr/var. - --sysconfdir=/etc/news : -leafnode reads it's configuration data from an file called + --sysconfdir=/etc/news : leafnode reads it's configuration data from an file called config, this with be created in /etc/news to avoid any potential conflict with other packages. - make update : -Create an initial /etc/news/config.example file, + make update : Create an initial /etc/news/config.example file, which must be renamed to /etc/news/config. diff --git a/server/other/openldap/openldap-desc.xml b/server/other/openldap/openldap-desc.xml index e1b6a466d9..4d090311dc 100644 --- a/server/other/openldap/openldap-desc.xml +++ b/server/other/openldap/openldap-desc.xml @@ -1,8 +1,9 @@ Contents -The OpenLDAP package contains slapd, slurpd, LDAP libraries, and -various utilities, tools, and sample clients. +The OpenLDAP package contains slapd, +slurpd, LDAP libraries and +various utilities, tools, and sample clients. diff --git a/server/other/openldap/openldap-exp.xml b/server/other/openldap/openldap-exp.xml index 73ea04a59b..b4d51314b3 100644 --- a/server/other/openldap/openldap-exp.xml +++ b/server/other/openldap/openldap-exp.xml @@ -1,18 +1,18 @@ Installation command explanations ---prefix=/usr: Sets the prefix for almost all the file +--prefix=/usr : Sets the prefix for almost all the file paths to /usr. ---sysconfdir=/etc: Sets the configuration file directory to +--sysconfdir=/etc : Sets the configuration file directory to avoid the default of /usr/etc. ---libexecdir=/usr/sbin: Puts the server executables in +--libexecdir=/usr/sbin : Puts the server executables in /usr/sbin instead of /usr/libexec. ---enable-ldbm: Enable the most recent version of the Berkely DB. +--enable-ldbm : Enable the most recent version of the Berkely DB. ---disable-debug: Disable debugging code. +--disable-debug : Disable debugging code. make test: Validate correct build of the package. diff --git a/server/other/openldap/openldap-intro.xml b/server/other/openldap/openldap-intro.xml index d26af27d7e..4d77003be7 100644 --- a/server/other/openldap/openldap-intro.xml +++ b/server/other/openldap/openldap-intro.xml @@ -1,7 +1,8 @@ Introduction to OpenLDAP -Download location (FTP): +Download location (HTTP): +Download location (FTP): Version used: &openldap-version; Package size: &openldap-size; Estimated Disk space required: &openldap-buildsize; diff --git a/server/other/openldap/openldap.ent b/server/other/openldap/openldap.ent index 7deeb89566..7002df5ce6 100644 --- a/server/other/openldap/openldap.ent +++ b/server/other/openldap/openldap.ent @@ -9,5 +9,4 @@ - + diff --git a/server/other/openssh/openssh-config.xml b/server/other/openssh/openssh-config.xml index 1785945daa..dd99ffb434 100644 --- a/server/other/openssh/openssh-config.xml +++ b/server/other/openssh/openssh-config.xml @@ -3,7 +3,7 @@ Config files -/etc/ssh/ssh_config, /etc/ssh/sshd_config +/etc/ssh/ssh_config, /etc/ssh/sshd_config There are no required changes in either of these files. However you may wish to view them to make changes for appropriate security to your system. Configuration information can be found in the man pages for sshd, ssh and ssh-agent diff --git a/server/other/openssh/openssh-exp.xml b/server/other/openssh/openssh-exp.xml index 897caeddf5..e51b5aebb8 100644 --- a/server/other/openssh/openssh-exp.xml +++ b/server/other/openssh/openssh-exp.xml @@ -1,16 +1,16 @@ Command explanations ---sysconfigdir=/etc/ssh : This prevents the +--sysconfigdir=/etc/ssh : This prevents the configuration files from going to /usr/etc. ---with-md5-passwords : This is required +--with-md5-passwords : This is required if you made the changes recommended by the shadowpasswd_plus lfs hint on your ssh server when you installed the Shadow Password Suite or if you access a ssh server that authenticates by user passwords encrypted with md5. ---libexecdir=/usr/sbin : OpenSSH puts +--libexecdir=/usr/sbin : OpenSSH puts programs called by programs in /usr/libexec. sftp-server is a sshd utility and ssh-askpass is a ssh-add utility that is installed as a link to X11-ssh-askpass. Both of these should go in Configuration command explanations -cat > /etc/samba/smb.conf << "EOF" : -Create a default Samba configuration file. This configuration will +cat > /etc/samba/smb.conf << "EOF" +: 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 @@ -11,27 +11,26 @@ complicated than ordinary member server configuration, so instructions for PDC configuration will be given here. -cat > /etc/rc.d/init.d/samba << "EOF" : -Create the Samba boot script, used to start and stop Samba +cat > /etc/rc.d/init.d/samba << +"EOF" : Create the Samba boot script, used to start and stop Samba automatically on machine startup and shutdown. /usr/sbin/useradd -g 100 -d /dev/null -c \ - "Win2k Server" -s /bin/false win2kbox$ : + "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. -echo "swat 901/tcp" >> /etc/services : -Register the swat service to run on port 901. +echo "swat 901/tcp" >> /etc/services : Register the swat service to run on port 901. echo "swat stream tcp nowait.400 root /usr/sbin/swat swat" >> -/etc/inetd.conf : Instruct inetd where to find and how to +/etc/inetd.conf : Instruct inetd where to find and how to run swat. -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 +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. diff --git a/server/other/samba/samba-config.xml b/server/other/samba/samba-config.xml index a69ae15da1..6c9f0653c5 100644 --- a/server/other/samba/samba-config.xml +++ b/server/other/samba/samba-config.xml @@ -11,7 +11,7 @@ documentation by pointing a web browser to: file:///usr/share/samba/swat/using_samba/ch03_01.html#ch03-55770. Config files -/etc/samba/smb.conf, /etc/rc.d/init.d/samba +/etc/samba/smb.conf, /etc/rc.d/init.d/samba First we set up some directories needed by Samba: mkdir /var/lib/samba && @@ -21,7 +21,7 @@ mkdir /var/lib/samba/profiles && chmod -R 1777 /var/lib/samba And the Samba configuration file: -cat > /etc/samba/smb.conf << "EOF" +cat > /etc/samba/smb.conf << "EOF" [global] netbios name = SAMBABOX workgroup = DOMAIN01 @@ -58,7 +58,7 @@ comment = Users' home directories path = /home read only = no public = no -EOF +EOF Now add the machine trust account for WIN2KBOX: /usr/sbin/useradd -g 100 -d /dev/null -c \ @@ -67,7 +67,7 @@ passwd -l win2kbox$ && smbpasswd -a -m win2kbox Create the Samba boot script: -cat > /etc/rc.d/init.d/samba << "EOF" +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. @@ -108,7 +108,7 @@ case "$1" in ;; esac # End $rc_base/init.d/samba -EOF +EOF Add the run level symlinks: chmod 754 /etc/rc.d/init.d/samba && ln -s /etc/rc.d/init.d/samba /etc/rc.d/rc0.d/K48samba && @@ -129,9 +129,7 @@ first in order to join WIN2KBOX to the DOMAIN01 domain: 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: - -1. Right click on My Computer. +WIN2KBOX:1. Right click on My Computer. 2. Click on Properties. 3. Click on the Network Identification notebook tab. 4. Click on the Properties button. @@ -144,7 +142,7 @@ WIN2KBOX: 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. +11. Click Yes to reboot WIN2KBOX. Add a new user to the DOMAIN01 domain. Before logging on to WIN2KBOX, we will create a new user with @@ -172,7 +170,7 @@ to /etc/inetd.conf: If xinetd is used, the following command will add the swat entry to /etc/xinetd.conf: -cat >> /etc/xinetd.conf << "EOF" +cat >> /etc/xinetd.conf << "EOF" service swat { port = 901 @@ -183,7 +181,7 @@ service swat server = /usr/sbin/swat log_on_failure += USERID } -EOF +EOF The Samba Web Administration Tool, swat, can be launched with the following command on SAMBABOX: diff --git a/server/other/samba/samba-desc.xml b/server/other/samba/samba-desc.xml index 2cbcbc97c6..bf4cf56c0e 100644 --- a/server/other/samba/samba-desc.xml +++ b/server/other/samba/samba-desc.xml @@ -33,7 +33,7 @@ binary code page files nd vice versa. use in mapping characters to 16 bit unicode. mount.smbfs mount.smbfs provides /bin/mount with a way to mount remote -windows (or samba) fileshares +windows (or samba) fileshares. nmbd nmbd is the Samba NetBIOS name server. nmblookup diff --git a/server/other/samba/samba-exp.xml b/server/other/samba/samba-exp.xml index c039d49748..3909235832 100644 --- a/server/other/samba/samba-exp.xml +++ b/server/other/samba/samba-exp.xml @@ -2,19 +2,19 @@ Installation command explanations mkdir -p /etc/samba/private -mkdir -p /var/cache/samba : +mkdir -p /var/cache/samba Directories needed for proper operation of the smbd and nmbd daemons. ---prefix=/usr : Sets the prefix for almost all the file paths to /usr. +--prefix=/usr : Sets the prefix for almost all the file paths to /usr. ---sysconfdir=/etc : Sets the configuration file directory to avoid the default of /usr/etc. +--sysconfdir=/etc : Sets the configuration file directory to avoid the default of /usr/etc. ---localstatedir=/var : Sets the variable data directory to avoid the default of /usr/var. +--localstatedir=/var : Sets the variable data directory to avoid the default of /usr/var. ---with-fhs : Assigns all other file paths in a manner compliant with the Filesystem Hierarchy Standard. +--with-fhs : Assigns all other file paths in a manner compliant with the Filesystem Hierarchy Standard. ---with-smbmount : Orders the creation of an extra binary for use by the mount command so that mounting remote SMB (windows) shares becomes no more complex than mounting remote NFS shares. +--with-smbmount : Orders the creation of an extra binary for use by the mount command so that mounting remote SMB (windows) shares becomes no more complex than mounting remote NFS shares. -rm -rf /usr/private : Removes a directory erroneously created by source/scripts/installbin.sh during the make install. +rm -rf /usr/private : Removes a directory erroneously created by source/scripts/installbin.sh during the make install. diff --git a/server/other/samba/samba-intro.xml b/server/other/samba/samba-intro.xml index c91109a4e4..64c17f72b5 100644 --- a/server/other/samba/samba-intro.xml +++ b/server/other/samba/samba-intro.xml @@ -2,6 +2,7 @@ Introduction to Samba Download location (HTTP): +Download location (FTP): Version used: &samba-version; Package size: &samba-size; Estimated Disk space required: &samba-buildsize; diff --git a/server/other/samba/samba.ent b/server/other/samba/samba.ent index c269d066c0..9f2bc90154 100644 --- a/server/other/samba/samba.ent +++ b/server/other/samba/samba.ent @@ -6,8 +6,7 @@ - - + + diff --git a/server/other/xinetd/xinetd-config.xml b/server/other/xinetd/xinetd-config.xml index 88a591575b..6dbc8ba6f6 100644 --- a/server/other/xinetd/xinetd-config.xml +++ b/server/other/xinetd/xinetd-config.xml @@ -9,7 +9,7 @@ sed -e 's/etc/sbin/g' xinetd/sample.conf > /etc/xinetd.conf/etc/xinetd.conf Create the xinetd boot script: -cat > /etc/rc.d/init.d/xinetd << "EOF" +cat > /etc/rc.d/init.d/xinetd << "EOF" #!/bin/bash # Begin $rc_base/init.d/xinetd # Based on sysklogd script from LFS-3.1 and earlier. @@ -43,7 +43,7 @@ case "$1" in ;; esac # End $rc_base/init.d/xinetd -EOF +EOF Add the run level symlinks: diff --git a/server/other/xinetd/xinetd-desc.xml b/server/other/xinetd/xinetd-desc.xml index 5cf3ccd035..6dd1d247a3 100644 --- a/server/other/xinetd/xinetd-desc.xml +++ b/server/other/xinetd/xinetd-desc.xml @@ -4,7 +4,7 @@ The xinetd package contains xinetd, itox and -xconv.pl. +xconv.pl. Description