r4547 - in trunk/BOOK: . introduction/welcome server/mail server/major

randy at linuxfromscratch.org randy at linuxfromscratch.org
Sat Jun 4 13:05:03 PDT 2005


Author: randy
Date: 2005-06-04 14:05:01 -0600 (Sat, 04 Jun 2005)
New Revision: 4547

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/server/mail/postfix.xml
   trunk/BOOK/server/major/nfs-utils.xml
Log:
Standardized the creation of the nobody user (without a valid login shell) in the Postfix and NFS Utilities instructions

Modified: trunk/BOOK/general.ent
===================================================================
--- trunk/BOOK/general.ent	2005-06-03 22:45:44 UTC (rev 4546)
+++ trunk/BOOK/general.ent	2005-06-04 20:05:01 UTC (rev 4547)
@@ -1,8 +1,8 @@
-<!ENTITY day          "03">
+<!ENTITY day          "04">
 <!ENTITY month        "06">
 <!ENTITY year         "2005">
 <!ENTITY version      "svn-&year;&month;&day;">
-<!ENTITY releasedate  "June &day;rd, &year;">
+<!ENTITY releasedate  "June &day;th, &year;">
 <!ENTITY pubdate      "&year;-&month;-&day;"> <!-- metadata req. by TLDP -->
 <!ENTITY blfs-version "svn">                  <!-- svn|[release #] -->
 <!ENTITY lfs-version  "development">          <!-- version|stable|testing|unstable|development] -->

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2005-06-03 22:45:44 UTC (rev 4546)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2005-06-04 20:05:01 UTC (rev 4547)
@@ -25,6 +25,12 @@
   <itemizedlist>
 
     <listitem>
+      <para>June 4th, 2005 [randy]: Standardized the creation of the nobody
+      user (without a valid login shell) in the NFS Utilities and Postfix
+      instructions.</para>
+    </listitem>
+
+    <listitem>
       <para>June 3rd, 2005 [randy]: Updated Samba configuration information as
       suggested by Alexander Patrakov (fixes bug #1386); Updated to rsync-2.6.5
       and OpenSSH-4.1p1.</para>

Modified: trunk/BOOK/server/mail/postfix.xml
===================================================================
--- trunk/BOOK/server/mail/postfix.xml	2005-06-03 22:45:44 UTC (rev 4546)
+++ trunk/BOOK/server/mail/postfix.xml	2005-06-04 20:05:01 UTC (rev 4547)
@@ -170,27 +170,34 @@
       <title>Installing Postfix</title>
 
       <para>Before you compile the program, you need to create users and groups
-      that will be expected to be in place when the install script executes.
-      Add the users and groups with the following commands:</para>
+      that will be expected to be in place during the installation.
+      Add the users and groups with the following commands issued by the
+      <systemitem class='username'>root</systemitem> user:</para>
 
-<screen role="root"><userinput>groupadd postfix &&
-groupadd postdrop &&
-groupadd -g 65534 nogroup &&
-useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &&
-useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &&
-chown postfix:postfix /var/mail</userinput></screen>
+<screen role="root"><userinput>groupadd -g 32 postfix &&
+groupadd -g 33 postdrop &&
+groupadd -g 99 nogroup &&
+useradd -c "Postfix Daemon User" -d /dev/null -g postfix \
+    -s /bin/false -u 32 postfix &&
+useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
+    -s /bin/false -u 99 nobody &&
+chown -v postfix:postfix /var/mail</userinput></screen>
 
       <para>Install <application>Postfix</application> by running the
       following commands:</para>
 
-<screen role="root"><userinput>make &&
-sh postfix-install daemon_directory=/usr/sbin \
+<screen role="root"><userinput>make</userinput></screen>
+
+    <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
+
+<screen role='root'><userinput>sh postfix-install daemon_directory=/usr/sbin \
                    manpage_directory=/usr/share/man \
                    sample_directory=/usr/share/doc/postfix \
                    -non-interactive</userinput></screen>
 
       <para>The final installation step is to install the program's documentation
-      with the following commands:</para>
+      with the following commands (again, as the 
+      <systemitem class="username">root</systemitem> user):</para>
 
 <screen role="root"><userinput>install -v -d /usr/share/doc/postfix &&
 cp -v -rf html/* /usr/share/doc/postfix</userinput></screen>

Modified: trunk/BOOK/server/major/nfs-utils.xml
===================================================================
--- trunk/BOOK/server/major/nfs-utils.xml	2005-06-03 22:45:44 UTC (rev 4546)
+++ trunk/BOOK/server/major/nfs-utils.xml	2005-06-04 20:05:01 UTC (rev 4547)
@@ -100,7 +100,8 @@
     <systemitem class="username">root</systemitem> user:</para>
 
 <screen role="root"><userinput>groupadd -g 99 nogroup &&
-useradd -c nobody -d /home -g nogroup -s /bin/bash -u 99 nobody</userinput></screen>
+useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
+    -s /bin/false -u 99 nobody</userinput></screen>
 
     <note>
       <para>The classic uid and gid values are 65534 which is also -2 when




More information about the blfs-book mailing list