Opened 16 years ago
Closed 16 years ago
#199 closed defect (wontfix)
Camera not detected by non root user.
Reported by: | siege2050 | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | CBLFS Wiki | Version: | CBLFS |
Keywords: | Cc: |
Description
Wasn't sure where to submit this but after building a CBLFS system I discovered that my usb camera would not open in any program including digikam under users other than root. I am not sure that this is the proper fix for such a problem but here is what I did. After struggling with the problem for some time I looked at the 50-udev-default.rules file and noticed that there was no group listed for the libusb device nodes and the permissions were 0644. When the camera was detected it showed itself under /dev/usb/002/random number here. I right clicked and the permissions would not allow the group to read or write so I edited the file 50-udev-default.rules from this
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", MODE="0644"
to this
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", NAME="bus/usb/$env{BUSNUM}/$env{DEVNUM}", GROUP="usb", MODE="0664"
Now I was able to open as non root user. Like I said I wasn't sure where to submit this but I thought it would save someone a headache.
Why not add this to the CBLFS wiki. Anyone can make updates to CBLFS as long as the keep the format in tact.