Standardized the creation of the nobody user (without a valid login shell) in the Postfix and NFS Utilities instructions

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4547 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Randy McMurchy 2005-06-04 20:05:01 +00:00
parent 9274bc5a33
commit 0dfb754ccb
4 changed files with 28 additions and 14 deletions

View File

@ -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] -->

View File

@ -24,6 +24,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

View File

@ -170,27 +170,34 @@ AUXLIBS="-L/usr/lib -lpq -lz -lm"</literal></screen>
<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 &amp;&amp;
groupadd postdrop &amp;&amp;
groupadd -g 65534 nogroup &amp;&amp;
useradd -c postfix -d /dev/null -g postfix -s /bin/false postfix &amp;&amp;
useradd -c nobody -d /home -g nogroup -s /bin/bash -u 65534 nobody &amp;&amp;
chown postfix:postfix /var/mail</userinput></screen>
<screen role="root"><userinput>groupadd -g 32 postfix &amp;&amp;
groupadd -g 33 postdrop &amp;&amp;
groupadd -g 99 nogroup &amp;&amp;
useradd -c "Postfix Daemon User" -d /dev/null -g postfix \
-s /bin/false -u 32 postfix &amp;&amp;
useradd -c "Unprivileged Nobody" -d /dev/null -g nogroup \
-s /bin/false -u 99 nobody &amp;&amp;
chown -v postfix:postfix /var/mail</userinput></screen>
<para>Install <application>Postfix</application> by running the
following commands:</para>
<screen role="root"><userinput>make &amp;&amp;
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 &amp;&amp;
cp -v -rf html/* /usr/share/doc/postfix</userinput></screen>

View File

@ -100,7 +100,8 @@
<systemitem class="username">root</systemitem> user:</para>
<screen role="root"><userinput>groupadd -g 99 nogroup &amp;&amp;
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