Why do I get EACCESS?

Josef Wolf jw at raven.inka.de
Fri Mar 20 19:48:08 UTC 2020


Hello,

This is with ubuntu-18.04:

According /etc/group, I should be member of the "usb" group:

  ~ $ grep usb /etc/group
  usb:x:1003:jw

But I can't access charcter device whith g+rw permission:

  ~ $ strace /usr/local/crossgcc/bin/openocd -f openocd.cfg 2>&1 | grep EACCES
  openat(AT_FDCWD, "/dev/bus/usb/002/005", O_RDWR) = -1 EACCES (Permission denied)
  ~ $ ls -l /dev/bus/usb/002/005
  crw-rw-r-- 1 root usb 189, 132 Mär 20 20:16 /dev/bus/usb/002/005

Turns out that the "id" command sees only my primary group:

  ~ $ id -G
  1001

What am I missing?

-- 
Josef Wolf
jw at raven.inka.de




More information about the ubuntu-users mailing list