[systemd-devel] DynamicUser and udev uaccess

Renjaya Raga Zenta ragazenta at gmail.com
Fri Jul 19 05:49:17 UTC 2024


Is there another way to allow DynamicUser to access the USB scanner instead
of setting MODE="666"? Or can the DynamicUser be marked as a logged-in user?

Thanks.

On Fri, Jul 19, 2024 at 11:03 AM Andrei Borzenkov <arvidjaar at gmail.com>
wrote:

> On 19.07.2024 05:01, Renjaya Raga Zenta wrote:
> > Hi there,
> >
> > We have a service using DynamicUser=yes which interacts with some USB
> > scanners. It seems TAG+="uaccess" is already set by 70-uaccess.rules as
> we
> > use libsane. But unfortunately, the service cannot access the scanner
> > unless we set MODE="666" manually in another udev rule.
> >
> > Is it the expected behavior?
>
> Yes. `uaccess` gives access to the logged in user and your service runs
> under a different user.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240719/50832a66/attachment.htm>


More information about the systemd-devel mailing list