Ticket #2493: usermod-2.patch
File usermod-2.patch, 5.5 KB (added by , 16 years ago) |
---|
-
basicnet/connect/ppp.xml
88 88 </indexterm> 89 89 90 90 <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> 92 93 93 <screen role="root"><userinput>groupadd -g 52 pppusers</userinput></screen> 94 <screen role="root"><userinput>groupadd -g 52 pppusers 95 usermod -a -G pppusers <replaceable><username></replaceable> 96 </userinput></screen> 94 97 95 98 <para>Install <application>PPP</application> by running the 96 99 following commands:</para> -
multimedia/libdriv/alsa-utils.xml
167 167 EOF 168 168 chmod -v 644 /etc/udev/rules.d/40-alsa.rules</userinput></screen> 169 169 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><username></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><username></replaceable></command>' 179 should work around this as well.</para> 180 </note> 181 170 182 </sect3> 171 183 172 184 </sect2> -
server/other/svnserver.xml
79 79 user to that group with the following commands:</para> 80 80 81 81 <screen role="root"><userinput>groupadd -g 57 svntest && 82 usermod -G svntest svn</userinput></screen>82 usermod -G svntest -a svn</userinput></screen> 83 83 84 84 <para>Additionally you should set <command>umask 002</command> while 85 85 working with a repository so that all new files will be writable by … … 159 159 <screen role="root"><userinput>chown -R svn:svntest /srv/svn/repositories/svntest && 160 160 chmod -R g+w /srv/svn/repositories/svntest && 161 161 chmod g+s /srv/svn/repositories/svntest/db && 162 usermod -G svn,svntest ,<replaceable><insert existing groups></replaceable><replaceable><username></replaceable></userinput></screen>162 usermod -G svn,svntest -a <replaceable><username></replaceable></userinput></screen> 163 163 164 164 <para><systemitem class="groupname">svntest</systemitem> is the group 165 165 assigned to the svntest repository. As mentioned earlier, this eases -
x/installing/x-setup.xml
274 274 Mode 0660 275 275 EndSection</literal></screen> 276 276 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><username></replaceable></userinput></screen> 282 277 283 <note><para>DRI configuration may differ if you are using alternate 278 284 drivers, such as those from 279 285 <ulink url="http://www.nvidia.com/page/home.html">NVIDIA</ulink> or -
general/sysutils/hal.xml
276 276 277 277 <para>Now add the users you would like to the <systemitem 278 278 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><username></replaceable></userinput></screen> 281 <para>Note that these users still need 280 282 to have appropriate permissions to access the devices that 281 283 <application>HAL</application> will invoke its methods on.</para> 282 284 -
general/genlib/libusb.xml
149 149 </indexterm> 150 150 151 151 <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> 154 153 155 154 <screen><literal>cat > /etc/udev/rules.d/23-usb.rules << "EOF" 156 155 # Set group ownership for raw USB devices … … 176 175 <screen><literal>usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0</literal></screen> 177 176 --> 178 177 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><username></replaceable></userinput></screen> 181 179 182 </sect2> 180 183 181 184 <sect2 role="content">