Score:0

why I can not see the video when I run cheese not by sudo

us flag

When I run cheese not by sudo, I can not see the video. Why?enter image description here

nobody avatar
gh flag
Can you add `getfacl /dev/video*` to your question please?
us flag
Also, open the menu -> preferences, and check if any camera is detected there.
vanadium avatar
cn flag
You may have used `sudo <graphical application> too frequently lately. Doing this can change permissions under the home directory of the user, and lead to issues such as this. Temporarily create a new account, and run cheese there. If it works in a new account, then likely something like this will be the issue.
Score:0
it flag

Many device access problems can be resolved through group membership changes.

You can find the device name by watching sudo journalctl --follow as you connect your device. OR ls -1 /dev >dev.before, connect the device, wait 10 seconds, ls -1 /dev >dev.after;diff dev.{before,after}.

Specifically, if ls -l shows that the group permissions (the second "rwx" triplet) is "rw" (e.g."-rw-rw----"), then, adding oneself to the group that owns the device will grant rw access.

Here's how:

device="/dev/video"
sudo adduser $USER $(stat -c "%G" $device)

This allows you membership in the group that can rw the device, but there is one more step.

To make all your processes members of the new group, logout and login. Group memberships are set up at login time.

To create a single process in the new group (for testing, prior to logout/login):

newgrp $(stat -c "%G" $device)  

or, just type the group name. See man newgrp.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.