[blfs-book] r11084 - in trunk: BOOK BOOK/networking/netprogs BOOK/postlfs/config bootscripts/blfs/init.d

krejzi at higgs.linuxfromscratch.org krejzi at higgs.linuxfromscratch.org
Sun Mar 10 13:53:27 PDT 2013


Author: krejzi
Date: Sun Mar 10 13:53:27 2013
New Revision: 11084

Log:
Add an unprivileged user to ntp instructions and modify bootscript to start ntpd as that user.

Modified:
   trunk/BOOK/general.ent
   trunk/BOOK/networking/netprogs/ntp.xml
   trunk/BOOK/postlfs/config/users.xml
   trunk/bootscripts/blfs/init.d/ntpd

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent	Sun Mar 10 12:22:54 2013	(r11083)
+++ trunk/BOOK/general.ent	Sun Mar 10 13:53:27 2013	(r11084)
@@ -66,7 +66,7 @@
 <!ENTITY lfs-vim-version              "7.3">
 <!-- End LFS versions -->
 
-<!ENTITY blfs-bootscripts-version     "20130212">
+<!ENTITY blfs-bootscripts-version     "20130310">
 <!ENTITY blfs-bootscripts-download    "&downloads-root;/blfs-bootscripts-&blfs-bootscripts-version;.tar.bz2">
 
 <!ENTITY blfs-wiki                    "http://wiki.&lfs-domainname;/blfs/wiki">

Modified: trunk/BOOK/networking/netprogs/ntp.xml
==============================================================================
--- trunk/BOOK/networking/netprogs/ntp.xml	Sun Mar 10 12:22:54 2013	(r11083)
+++ trunk/BOOK/networking/netprogs/ntp.xml	Sun Mar 10 13:53:27 2013	(r11084)
@@ -80,6 +80,17 @@
   <sect2 role="installation">
     <title>Installation of ntp</title>
 
+    <para>
+      There should be a dedicated user and group to take control
+      of the <command>ntpd</command> daemon after it is
+      started. Issue the following commands as the
+      <systemitem class="username">root</systemitem> user:
+    </para>
+
+<screen role="root"><userinput>groupadd -g 87 ntp &&
+useradd -c "Network Time Protocol" -d /var/lib/ntp -u 87 \
+        -g ntp -s /bin/false ntp</userinput></screen>
+
     <para>Install <application>ntp</application> by running
     the following commands:</para>
 

Modified: trunk/BOOK/postlfs/config/users.xml
==============================================================================
--- trunk/BOOK/postlfs/config/users.xml	Sun Mar 10 12:22:54 2013	(r11083)
+++ trunk/BOOK/postlfs/config/users.xml	Sun Mar 10 13:53:27 2013	(r11084)
@@ -108,6 +108,7 @@
         <row><entry>avahi   </entry><entry>84</entry><entry>84</entry></row>
         <row><entry>avahi-autoipd</entry><entry>85</entry><entry>85</entry></row>
         <row><entry>netdev  </entry><entry>  </entry><entry>86</entry></row>
+        <row><entry>ntp     </entry><entry>87</entry><entry>87</entry></row>
         <row><entry>anonymous</entry><entry>98</entry><entry>  </entry></row>
         <row><entry>nobody  </entry><entry>99</entry><entry>  </entry></row>
         <row><entry>nogroup </entry><entry>  </entry><entry>99</entry></row>

Modified: trunk/bootscripts/blfs/init.d/ntpd
==============================================================================
--- trunk/bootscripts/blfs/init.d/ntpd	Sun Mar 10 12:22:54 2013	(r11083)
+++ trunk/bootscripts/blfs/init.d/ntpd	Sun Mar 10 13:53:27 2013	(r11084)
@@ -32,7 +32,7 @@
 case "$1" in
    start)
       log_info_msg "Starting ntpd..."
-      start_daemon /usr/sbin/ntpd -g
+      start_daemon /usr/sbin/ntpd -g -u ntp:ntp
       evaluate_retval
       ;;
 



More information about the blfs-book mailing list