Bug 28876 - adb cannot identify a device because the plugdev group is not created
Summary: adb cannot identify a device because the plugdev group is not created
Status: RESOLVED DUPLICATE of bug 28860
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 8
Hardware: All Linux
Priority: Normal minor
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 23:58 CEST by Kristoffer Grundström
Modified: 2021-05-05 20:28 CEST (History)
2 users (show)

See Also:
Source RPM: android-tools-10.0.0_r2-3.mga8.src.rpm
CVE:
Status comment:


Attachments

Description Kristoffer Grundström 2021-05-04 23:58:18 CEST
Description of problem: I think the installation of adb from the android-tools package should also create a group called plugdev and then add the user to it so that when you run adb devices the adb server can see the connected device because as of now it doesn't.

Version-Release number of selected component (if applicable): 10.0.0r2-3

How reproducible: All the time.

Steps to Reproduce:
1. Open a terminal window.
2. Login as root.
3. Run urpmi android-tools
4. Connect a device and enable USB Debugging. Press Yes when prompted if you want to allow USB Debugging.
5. Exit to normal user shell.
6. Type adb devices.
7. Insufficient permissions is the result.
Comment 1 Kristoffer Grundström 2021-05-04 23:59:41 CEST
Having the sudo usermod -aG plugdev $LOGNAME command being runned during installation of android-tools would help a lot.
Comment 2 David GEIGER 2021-05-05 02:38:18 CEST
Please see bug 28860 !


Also it is not needed to open several android-tools bug for similar issue:


bug 28860
bug 26474
bug 24139
bug 27414
bug 23715

CC: (none) => geiger.david68210

Comment 3 Dave Hodgins 2021-05-05 04:50:39 CEST
Which user(s) should be added to the group given a linux system may have many
users, not just one. Also note that any users added to a group must logout and
then back in for a group change to take effect.

The decision of what users to add to what groups has to remain under the control
of the admin of that system.

It's fine for installation of the package to create such a group, but not to
automatically select users to add to the group.

CC: (none) => davidwhodgins

Comment 4 Lewis Smith 2021-05-05 20:28:00 CEST
Having looked at all the bugs listed by DavidW, bug 28860 is indeed the one to go for. Lots of references to group 'plugdev', and:
 https://bugs.mageia.org/show_bug.cgi?id=28860#c2
specifically suggests adding that group.

*** This bug has been marked as a duplicate of bug 28860 ***

Resolution: (none) => DUPLICATE
Status: NEW => RESOLVED
Source RPM: android-tools => android-tools-10.0.0_r2-3.mga8.src.rpm


Note You need to log in before you can comment on or make changes to this bug.