1. open/etc/group and add your username to the end of the vboxusers group. Run sudogpasswd-a 'whoam' vboxusers, similar to vboxusers: x: 124: felix021. // note: the character 'is the button on the left of 1, not a single quotation mark. You can also go to "system-& gt; System Management-& gt; user and group-& gt; Management Group" on the main menu ", open the vboxusers group and set your ID.
1. Open/etc/group and add your username to the end of the vboxusers group line, similar
Vboxusers: x: 124: felix021
You can also run sudo gpasswd-a 'whoam' vboxusers // Note: The character 'is the key on the left of 1, not a single quotation mark
You can also choose system> System Management> users and groups> Management Groups on the main menu, find the vboxusers group, and check your ID.
Note that the number displayed at "124" is the gid of the vboxusers group on your machine.
2. Open/etc/init. d/mountdevsubfs. sh and find the following lines:
#
# Magic to make/proc/bus/usb work
#
# Mkdir-p/dev/bus/usb/. usbfs
# Domount usbfs ""/dev/bus/usb/. usbfs-obusmode = 0700, devmode = 0600, listmode = 0644
# Ln-s. usbfs/devices/dev/bus/usb/devices
# Mount-rbind/dev/bus/usb/proc/bus/usb
Delete the # In front of the last 4 rows.
3. Open/etc/udev/rules. d/40-basic-permissions.rules
(Note that another file is very similar to it, called 40-permissions.rules. Do not make a mistake)
Find the following lines:
# USB devices (usb fs replacement)
SUBSYSTEM = "usb", ENV {DEVTYPE} = "usb_device", MODE = "0664"
SUBSYSTEM = "usb_device", MODE = "0664"
Add a GROUP = "vboxusers" option after the last two rows, that is, modify it:
# USB devices (usb fs replacement)
SUBSYSTEM = "usb", ENV {DEVTYPE} = "usb_device", MODE = "0664", GROUP = "vboxusers"
SUBSYSTEM = "usb_device", MODE = "0664", GROUP = "vboxusers"
4. Open/etc/fstab and add a line at the end
None/proc/bus/usb usbfs devgid = 124, devmode = 644 0 0
Replace 124 with the group number of the vboxusers group on your machine. If you do not know the number, perform the first step again.
5. Restart and OK.