Changeset 59168 in vbox for trunk/doc/manual/en_US
- Timestamp:
- Dec 17, 2015 9:34:01 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/en_US/user_Troubleshooting.xml
r59148 r59168 1438 1438 <para>If USB is not working on your Linux host, make sure that the 1439 1439 current user is a member of the 1440 <computeroutput>vboxusers</computeroutput> group. On older hosts, you 1441 need to make sure that the user has permission to access the USB 1442 filesystem (<computeroutput>usbfs</computeroutput>), which VirtualBox 1443 relies on to retrieve valid information about your host's USB devices. 1444 The rest of this section only applies to those older systems.</para> 1445 1446 <para>As <computeroutput>usbfs</computeroutput> is a virtual filesystem, 1447 a <computeroutput>chmod</computeroutput> on 1448 <computeroutput>/proc/bus/usb</computeroutput> has no effect. The 1449 permissions for <computeroutput>usbfs</computeroutput> can therefore 1450 <emphasis>only</emphasis> be changed by editing the 1451 <computeroutput>/etc/fstab</computeroutput> file.</para> 1452 1453 <para>For example, most Linux distributions have a user group called 1454 <computeroutput>usb</computeroutput> or similar, of which the current 1455 user must be a member. To give all users of that group access to usbfs, 1456 make sure the following line is present:<screen># 85 is the USB group 1457 none /proc/bus/usb usbfs devgid=85,devmode=664 0 0</screen>Replace 1458 85 with the group ID that matches your system (search 1459 <computeroutput>/etc/group</computeroutput> for "usb" or similar). 1460 Alternatively, if you don't mind the security hole, give all users 1461 access to USB by changing "664" to "666".</para> 1462 1463 <para>The various distributions are very creative from which script the 1464 <computeroutput>usbfs</computeroutput> filesystem is mounted. Sometimes 1465 the command is hidden in unexpected places. For SuSE 10.0 the mount 1466 command is part of the udev configuration file 1467 <computeroutput>/etc/udev/rules.d/50-udev.rules</computeroutput>. As 1468 this distribution has no user group called 1469 <computeroutput>usb</computeroutput>, you may e.g. use the 1470 <computeroutput>vboxusers</computeroutput> group which was created by 1471 the VirtualBox installer. Since group numbers are allocated dynamically, 1472 the following example uses 85 as a placeholder. Modify the line 1473 containing (a linebreak has been inserted to improve 1474 readability)<screen>DEVPATH="/module/usbcore", ACTION=="add", 1475 RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb"</screen> and add the 1476 necessary options (make sure that everything is in a single 1477 line):<screen>DEVPATH="/module/usbcore", ACTION=="add", 1478 RUN+="/bin/mount -t usbfs usbfs /proc/bus/usb -o devgid=85,devmode=664"</screen></para> 1479 1480 <para>Debian Etch has the mount command in 1481 <computeroutput>/etc/init.d/mountkernfs.sh</computeroutput>. Since that 1482 distribution has no group <computeroutput>usb</computeroutput>, it is 1483 also the easiest solution to allow all members of the group 1484 <computeroutput>vboxusers</computeroutput> to access the USB subsystem. 1485 Modify the line <screen>domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev</screen> 1486 so that it contains <screen>domount usbfs usbdevfs /proc/bus/usb -onoexec,nosuid,nodev,devgid=85,devmode=664</screen> 1487 As usual, replace the 85 with the actual group number which should get 1488 access to USB devices.</para> 1489 1490 <para>Other distributions do similar operations in scripts stored in the 1491 <computeroutput>/etc/init.d</computeroutput> directory.</para> 1440 <computeroutput>vboxusers</computeroutput> group. 1441 Please keep in mind that group membership does not take effect immediately 1442 but rather at the next login. If available, the 1443 <computeroutput>newgrp</computeroutput> command may avoid the need for 1444 logout/login.</para> 1492 1445 </sect2> 1493 1446
Note:
See TracChangeset
for help on using the changeset viewer.