Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lack of access to USB #126

Closed
pgrondek opened this issue May 5, 2023 · 4 comments
Closed

Lack of access to USB #126

pgrondek opened this issue May 5, 2023 · 4 comments

Comments

@pgrondek
Copy link

pgrondek commented May 5, 2023

Summary

Application run by ego doesn't have access to USB devices

Expected behavior

Application should be able to access USB devices with some run parameter

Steps to reproduce

  1. Start application as another user (eg. ego --user=user2 firefox)
  2. Try to access USB camera (eg. in discord) or other USB (eg. U2F Key)
  3. Application doesn't see USB devices
    If I login normally through gdm3 I can access USB devices without an issue
@intgr
Copy link
Owner

intgr commented May 5, 2023

Access to USB devices like webcams on Linux is usually controlled with user groups. Lots of user groups for Debian are documented here: https://wiki.debian.org/SystemGroups#Groups_without_an_associated_user

I believe most distros (if not all) use the user group video for this. You can check permissions of /dev/video* devices to make sure.

Granting this access is as easy as adding user2 to video group: sudo usermod -a -G video ego

@intgr
Copy link
Owner

intgr commented May 5, 2023

However, something related I would like to look into for ego is webcam & screen share forwarding via PipeWire. Not yet sure whether it's doable.

@pgrondek
Copy link
Author

pgrondek commented May 5, 2023

Access to USB devices like webcams on Linux is usually controlled with user groups. Lots of user groups for Debian are documented here: https://wiki.debian.org/SystemGroups#Groups_without_an_associated_user
Granting this access is as easy as adding user2 to video group: sudo usermod -a -G video user2

Thanks, I forgot about groups 🙈, now camera works, but U2F on firefox still doesn't connect. It's a small to not a issue because I can login into second account via gdm, authorize second factor and use browser with ego. You can close this issue if you want, workaround for u2f keys work for me

@intgr
Copy link
Owner

intgr commented Jun 12, 2023

I don't know how U2F works, can't help you there. It's possible that enabling U2F support is just as easy as adding another user group. Or maybe you need some custom udev rules. https://wiki.archlinux.org/title/udev#About_udev_rules

I've opened a new issue for PipeWire support, which I mentioned above.

I'm closing this issue.

@intgr intgr closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants