Stefan Hagen wrote: > <h3>Using a webcam as user</h3> > > <p> > To use the webcam as regular user, you need to change the device > permissions. Only root is allowed to access video devices by default. > > <p> > One way of allowing your user to access the video devices is to change > the permissions from <code>~/.xsession</code>. You can configure > <a href="https://man.openbsd.org/doas">doas(1)</a> to perform > <a href="https://man.openbsd.org/chmod">chmod(1)</a> as superuser > without asking for a password for your user. > > <p> > Then add the following line to your <code>~/.xsession</code>: > > <pre class="cmdbox"> > doas chown $USER /dev/video0 > </pre>
What do you think about adding a group "_video" to the default install and add /dev/video* devices to it with perm. 660. This would allow us to simply instruct users to add their user to group _video to give them access to video devices. Best Regards, Stefan