mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 06:27:16 +08:00
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:
parent
9274bc5a33
commit
0dfb754ccb
@ -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] -->
|
||||
|
@ -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
|
||||
|
@ -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 &&
|
||||
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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user