Ticket #2493: usermod-2.patch

File usermod-2.patch, 5.5 KB (added by thomas, 16 years ago)
  • basicnet/connect/ppp.xml

     
    8888    </indexterm>
    8989
    9090    <para>Create (as <systemitem class="username">root</systemitem>)
    91     the group for users who may run <application>PPP</application>:</para>
     91    the group for users who may run <application>PPP</application> and add them to
     92    that group:</para>
    9293
    93 <screen role="root"><userinput>groupadd -g 52 pppusers</userinput></screen>
     94<screen role="root"><userinput>groupadd -g 52 pppusers
     95usermod -a -G pppusers <replaceable>&lt;username&gt;</replaceable>
     96</userinput></screen>
    9497
    9598    <para>Install <application>PPP</application> by running the
    9699    following commands:</para>
  • multimedia/libdriv/alsa-utils.xml

     
    167167EOF
    168168chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen>
    169169
     170      <para>All sound devices are not accessable for any user except
     171      <systemitem class="username">root</systemitem> and members of the
     172      <systemitem class="groupname">audio</systemitem> group. Add any users
     173      that might use the sound devices to that group:</para>
     174<screen role="root"><userinput>usermod -a -G audio <replaceable>&lt;username&gt;</replaceable></userinput></screen>
     175
     176      <note>
     177        <para>You may need to log out and back in again to refresh your group
     178        memberships. '<command>su <replaceable>&lt;username&gt;</replaceable></command>'
     179        should work around this as well.</para>
     180      </note>
     181
    170182    </sect3>
    171183
    172184  </sect2>
  • server/other/svnserver.xml

     
    7979      user to that group with the following commands:</para>
    8080
    8181<screen role="root"><userinput>groupadd -g 57 svntest &amp;&amp;
    82 usermod -G svntest svn</userinput></screen>
     82usermod -G svntest -a svn</userinput></screen>
    8383
    8484      <para>Additionally you should set <command>umask 002</command> while
    8585      working with a repository so that all new files will be writable by
     
    159159<screen role="root"><userinput>chown -R svn:svntest /srv/svn/repositories/svntest &amp;&amp;
    160160chmod -R g+w /srv/svn/repositories/svntest &amp;&amp;
    161161chmod g+s /srv/svn/repositories/svntest/db &amp;&amp;
    162 usermod -G svn,svntest,<replaceable>&lt;insert existing groups&gt;</replaceable> <replaceable>&lt;username&gt;</replaceable></userinput></screen>
     162usermod -G svn,svntest -a <replaceable>&lt;username&gt;</replaceable></userinput></screen>
    163163
    164164      <para><systemitem class="groupname">svntest</systemitem> is the group
    165165      assigned to the svntest repository. As mentioned earlier, this eases
  • x/installing/x-setup.xml

     
    274274    Mode  0660
    275275EndSection</literal></screen>
    276276
     277    <para>The DRI devices are not accessable for any user except
     278      <systemitem class="username">root</systemitem> and members of the
     279      <systemitem class="groupname">video</systemitem> group. Add any users
     280      that might use X to that group:</para>
     281<screen role="root"><userinput>usermod -a -G video <replaceable>&lt;username&gt;</replaceable></userinput></screen>
     282
    277283    <note><para>DRI configuration may differ if you are using alternate
    278284    drivers, such as those from
    279285    <ulink url="http://www.nvidia.com/page/home.html">NVIDIA</ulink> or
  • general/sysutils/hal.xml

     
    276276
    277277      <para>Now add the users you would like to the <systemitem
    278278      class="groupname">halusers</systemitem> group to use
    279       <application>HAL</application>. Note that these users still need
     279      <application>HAL</application>.</para>
     280<screen role="root"><userinput>usermod -a -G halusers <replaceable>&lt;username&gt;</replaceable></userinput></screen>
     281      <para>Note that these users still need
    280282      to have appropriate permissions to access the devices that
    281283      <application>HAL</application> will invoke its methods on.</para>
    282284
  • general/genlib/libusb.xml

     
    149149    </indexterm>
    150150
    151151    <para>To have raw USB devices set up properly, add the following
    152     <application>udev</application> rule and add any users
    153     that need to access raw USB devices to the "usb" group.</para>
     152    <application>udev</application> rule.</para>
    154153
    155154<screen><literal>cat &gt; /etc/udev/rules.d/23-usb.rules &lt;&lt; "EOF"
    156155# Set group ownership for raw USB devices
     
    176175<screen><literal>usbfs  /proc/bus/usb  usbfs  devgid=14,devmode=0660  0  0</literal></screen>
    177176-->
    178177
     178    <para>Add any users that need to access raw USB devices to the
     179    <systemitem class="groupname">usb</systemitem> group.</para>
     180<screen role="root"><userinput>usermod -a -G usb <replaceable>&lt;username&gt;</replaceable></userinput></screen>
     181
    179182  </sect2>
    180183
    181184  <sect2 role="content">