r7337 - in trunk/BOOK: basicnet/connect general/genlib general/sysutils introduction/welcome multimedia/libdriv server/other x/installing

thomas at linuxfromscratch.org thomas at linuxfromscratch.org
Tue Apr 1 11:37:20 PDT 2008


Author: thomas
Date: 2008-04-01 12:37:20 -0600 (Tue, 01 Apr 2008)
New Revision: 7337

Modified:
   trunk/BOOK/basicnet/connect/ppp.xml
   trunk/BOOK/general/genlib/libusb.xml
   trunk/BOOK/general/sysutils/hal.xml
   trunk/BOOK/introduction/welcome/changelog.xml
   trunk/BOOK/multimedia/libdriv/alsa-utils.xml
   trunk/BOOK/server/other/svnserver.xml
   trunk/BOOK/x/installing/x-setup.xml
Log:
Updates on usermod commands

Modified: trunk/BOOK/basicnet/connect/ppp.xml
===================================================================
--- trunk/BOOK/basicnet/connect/ppp.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/basicnet/connect/ppp.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -166,6 +166,10 @@
       in this section are executed as
       <systemitem class="username">root</systemitem> user.</para>
 
+      <para>Add the users who may run <application>PPP</application> to the
+      <systemitem class="groupname">pppusers</systemitem> group:</para>
+<screen role="root"><userinput>usermod -a -G pppusers <replaceable><username></replaceable></userinput></screen>
+
     <sect4>
       <title>Setting the passwords</title>
 

Modified: trunk/BOOK/general/genlib/libusb.xml
===================================================================
--- trunk/BOOK/general/genlib/libusb.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/general/genlib/libusb.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -149,8 +149,7 @@
     </indexterm>
 
     <para>To have raw USB devices set up properly, add the following
-    <application>udev</application> rule and add any users
-    that need to access raw USB devices to the "usb" group.</para>
+    <application>udev</application> rule.</para>
 
 <screen><literal>cat > /etc/udev/rules.d/23-usb.rules << "EOF"
 # Set group ownership for raw USB devices
@@ -176,6 +175,10 @@
 <screen><literal>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</literal></screen>
 -->
 
+    <para>Add any users that need to access raw USB devices to the 
+    <systemitem class="groupname">usb</systemitem> group.</para>
+<screen role="root"><userinput>usermod -a -G usb <replaceable><username></replaceable></userinput></screen>
+
   </sect2>
 
   <sect2 role="content">

Modified: trunk/BOOK/general/sysutils/hal.xml
===================================================================
--- trunk/BOOK/general/sysutils/hal.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/general/sysutils/hal.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -276,7 +276,9 @@
 
       <para>Now add the users you would like to the <systemitem
       class="groupname">halusers</systemitem> group to use
-      <application>HAL</application>. Note that these users still need
+      <application>HAL</application>.</para>
+<screen role="root"><userinput>usermod -a -G halusers <replaceable><username></replaceable></userinput></screen>
+      <para>Note that these users still need
       to have appropriate permissions to access the devices that
       <application>HAL</application> will invoke its methods on.</para>
 

Modified: trunk/BOOK/introduction/welcome/changelog.xml
===================================================================
--- trunk/BOOK/introduction/welcome/changelog.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/introduction/welcome/changelog.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -46,6 +46,10 @@
         <listitem>
           <para>[ken] - Updated xine-lib to 1.1.11.1.</para>
         </listitem>
+        <listitem>
+          <para>[thomas] - Updates on adding users to groups. Avoid destroying
+          group assignments in usermod commands without -a option</para>
+        </listitem>
       </itemizedlist>
     </listitem>
 

Modified: trunk/BOOK/multimedia/libdriv/alsa-utils.xml
===================================================================
--- trunk/BOOK/multimedia/libdriv/alsa-utils.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/multimedia/libdriv/alsa-utils.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -167,6 +167,18 @@
 EOF
 chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen>
 
+      <para>All sound devices are not accessable for any user except 
+      <systemitem class="username">root</systemitem> and members of the
+      <systemitem class="groupname">audio</systemitem> group. Add any users
+      that might use the sound devices to that group:</para>
+<screen role="root"><userinput>usermod -a -G audio <replaceable><username></replaceable></userinput></screen>
+
+      <note>
+        <para>You may need to log out and back in again to refresh your group
+        memberships. '<command>su <replaceable><username></replaceable></command>'
+        should work around this as well.</para>
+      </note>
+
     </sect3>
 
   </sect2>

Modified: trunk/BOOK/server/other/svnserver.xml
===================================================================
--- trunk/BOOK/server/other/svnserver.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/server/other/svnserver.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -79,7 +79,7 @@
       user to that group with the following commands:</para>
 
 <screen role="root"><userinput>groupadd -g 57 svntest &&
-usermod -G svntest svn</userinput></screen>
+usermod -G svntest -a svn</userinput></screen>
 
       <para>Additionally you should set <command>umask 002</command> while
       working with a repository so that all new files will be writable by
@@ -159,7 +159,7 @@
 <screen role="root"><userinput>chown -R svn:svntest /srv/svn/repositories/svntest &&
 chmod -R g+w /srv/svn/repositories/svntest &&
 chmod g+s /srv/svn/repositories/svntest/db &&
-usermod -G svn,svntest,<replaceable><insert existing groups></replaceable> <replaceable><username></replaceable></userinput></screen>
+usermod -G svn,svntest -a <replaceable><username></replaceable></userinput></screen>
 
       <para><systemitem class="groupname">svntest</systemitem> is the group
       assigned to the svntest repository. As mentioned earlier, this eases

Modified: trunk/BOOK/x/installing/x-setup.xml
===================================================================
--- trunk/BOOK/x/installing/x-setup.xml	2008-04-01 17:10:26 UTC (rev 7336)
+++ trunk/BOOK/x/installing/x-setup.xml	2008-04-01 18:37:20 UTC (rev 7337)
@@ -274,6 +274,12 @@
     Mode  0660
 EndSection</literal></screen>
 
+    <para>The DRI devices are not accessable for any user except 
+      <systemitem class="username">root</systemitem> and members of the
+      <systemitem class="groupname">video</systemitem> group. Add any users
+      that might use X to that group:</para>
+<screen role="root"><userinput>usermod -a -G video <replaceable><username></replaceable></userinput></screen>
+
     <note><para>DRI configuration may differ if you are using alternate
     drivers, such as those from
     <ulink url="http://www.nvidia.com/page/home.html">NVIDIA</ulink> or




More information about the blfs-book mailing list