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

krejzi at higgs.linuxfromscratch.org krejzi at higgs.linuxfromscratch.org
Sun Mar 10 14:07:50 PDT 2013


Author: krejzi
Date: Sun Mar 10 14:07:50 2013
New Revision: 11086

Log:
Fix samba to install all pkgconfig files and modify samba instructions to match systemd units.

Modified:
   trunk/BOOK/networking/netprogs/samba3.xml
   trunk/BOOK/postlfs/config/users.xml
   trunk/bootscripts/blfs/init.d/samba

Modified: trunk/BOOK/networking/netprogs/samba3.xml
==============================================================================
--- trunk/BOOK/networking/netprogs/samba3.xml	Sun Mar 10 13:56:37 2013	(r11085)
+++ trunk/BOOK/networking/netprogs/samba3.xml	Sun Mar 10 14:07:50 2013	(r11086)
@@ -109,6 +109,14 @@
   <sect2 role="installation">
     <title>Installation of Samba</title>
 
+    <para>
+      First, create a privileged group for <command>winbindd</command>
+      clients by running the following command as the
+      <systemitem class="username">root</systemitem> user:
+    </para>
+
+<screen role="root"><userinput>groupadd -g 97 winbindd_priv</userinput></screen>
+
     <note>
       <para>If you wish to run the test suite after the binaries are built,
       you must add the <option>--enable-socket-wrapper</option> parameter to
@@ -131,7 +139,7 @@
     --prefix=/usr                      \
     --sysconfdir=/etc                  \
     --localstatedir=/var               \
-    --with-piddir=/run                 \
+    --with-piddir=/run/samba           \
     --with-pammodulesdir=/lib/security \
     --with-fhs                         \
     --enable-nss-wrapper               \
@@ -150,7 +158,7 @@
 
 <screen role="root"><userinput>make install &&
 
-cp pkgconfig/wbclient.pc /usr/lib/pkgconfig               &&
+install -v -m644 pkgconfig/*.pc /usr/lib/pkgconfig        &&
 install -v -m755 ../nsswitch/libnss_win{s,bind}.so /lib   &&
 ln -v -sf libnss_winbind.so /lib/libnss_winbind.so.2      &&
 ln -v -sf libnss_wins.so    /lib/libnss_wins.so.2         &&

Modified: trunk/BOOK/postlfs/config/users.xml
==============================================================================
--- trunk/BOOK/postlfs/config/users.xml	Sun Mar 10 13:56:37 2013	(r11085)
+++ trunk/BOOK/postlfs/config/users.xml	Sun Mar 10 14:07:50 2013	(r11086)
@@ -109,6 +109,8 @@
         <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>sambashare</entry><entry> </entry><entry>96</entry></row>
+        <row><entry>winbindd_priv</entry><entry> </entry><entry>97</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/samba
==============================================================================
--- trunk/bootscripts/blfs/init.d/samba	Sun Mar 10 13:56:37 2013	(r11085)
+++ trunk/bootscripts/blfs/init.d/samba	Sun Mar 10 14:07:50 2013	(r11086)
@@ -22,6 +22,8 @@
 
 case "$1" in
    start)
+      mkdir -p /run/samba
+
       log_info_msg "Starting nmbd..."
       start_daemon /usr/sbin/nmbd -D
       evaluate_retval



More information about the blfs-book mailing list