Why do I get EACCESS?

Peter Silva peter at bsqt.homeip.net
Fri Mar 20 20:50:38 UTC 2020


just id without the -G should show you all the groups.
the permissions are set on startup.  Does the shell you are using date from
before or after you were added to the usb group.  by default, most people
have non-login shells in terminal sessions, so you may need to logout/login
from the gui for the usb group to be added in your shells.


On Fri, Mar 20, 2020 at 3:51 PM Josef Wolf <jw at raven.inka.de> wrote:

> 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
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20200320/faeba4a7/attachment.html>


More information about the ubuntu-users mailing list