<div dir="ltr"><div>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?<br><br></div><div>Thanks.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jul 19, 2024 at 11:03 AM Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 19.07.2024 05:01, Renjaya Raga Zenta wrote:<br>
> Hi there,<br>
> <br>
> We have a service using DynamicUser=yes which interacts with some USB<br>
> scanners. It seems TAG+="uaccess" is already set by 70-uaccess.rules as we<br>
> use libsane. But unfortunately, the service cannot access the scanner<br>
> unless we set MODE="666" manually in another udev rule.<br>
> <br>
> Is it the expected behavior? <br>
<br>
Yes. `uaccess` gives access to the logged in user and your service runs <br>
under a different user.<br>
</blockquote></div></div>