On 2019-08-23, Jan Stary <h...@stare.cz> wrote: > This is current/amd64 on a Dell Latitude E5570 (dmesg below). > It has this integrated camera which I am trying to use with video(1): > > uvideo0 at uhub0 port 11 configuration 1 interface 0 "CN0J8NNP7248765RBBM6A00 > Integrated_Webcam_HD" rev 2.00/54.13 addr 3 > video0 at uvideo0 > > Running just plain 'video' says > video: /dev/video: Permission denied > > Does that mean video(1) has to be run inside doas(1)? > Or is there, say, a group to add myself too, as with > e.g. operator to run shutdown? Doesn't seem so: > > ls -l /dev/video* > lrwxr-xr-x 1 root wheel 6 Jun 14 2017 /dev/video -> video0 > crw------- 1 root wheel 44, 0 Aug 19 16:47 /dev/video0 > crw------- 1 root wheel 44, 1 Aug 19 16:47 /dev/video1
You can just chown it, or you can use fbtab(5). > Copying the user's ~/.Xauthority to be root's ~/.Xauthority > makes it work, and up comes my mug staring into the camera. Better not to run codecs as root, even if they are simple ones.