Add '-a' after gpasswd to add USER to group plugdev.
Per: ➜ gpasswd --help
Usage: gpasswd [option] GROUP
Options:
-a, --add USER add USER to GROUP
-d, --delete USER remove USER from GROUP
-h, --help display this help message and exit
-Q, --root CHROOT_DIR directory to chroot into
-r, --remove-password remove the GROUP's password
-R, --restrict restrict access to GROUP to its members
-M, --members USER,... set the list of members of GROUP
-A, --administrators ADMIN,...
set the list of administrators for GROUP
Except for the -A and -M options, the options cannot be combined.
- Fix typo in rules path
- Fix capitalisation.
- `udevadm control --reload-rules` is unnecessary[1].
- `adduser` is Debian-specific, use the more portable `gpasswd`.
- No need to wait 10 seconds before re-inserting.
- After adding to group, user must re-login.
[1]: http://unix.stackexchange.com/a/39485/8250