LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   rights to v4l devices on devfs (http://www.linuxquestions.org/questions/linux-general-1/rights-to-v4l-devices-on-devfs-74517/)

acid_kewpie 07-21-2003 06:19 AM

rights to v4l devices on devfs
 
anyone able to tell me what is settings the rights on my v4l devices to 600 chris.root, even though my devfsd.conf clearly states they should be 666 root.video? no idea why these permissions are not according to devfs's demands. never did understand why devices like that come up as owned by my own user and not root, but now it's actually a problem as i need to record tv programs as another user.

slapNUT 07-21-2003 09:07 PM

v4l seems to be a little different when it comes to devfsd. Most devices in the /dev directory you only need to put a line in /etc/devfsd.conf like:
REGISTER ^v4l/.* user.root rw-rw-rw-
And that will chmod every entry in the /dev/v4l directory to user.root 666. This does not work with v4l.

I think but I have not tried it (because it would require me to issue killall -HUP devfsd and that would kill my internet connection and I am downloading at the minute) that you need to put the line REGISTER ^v4l/.* user.root rw-rw-rw- in the file /etc/devfs/conf.d/dynamic.conf.

Let me know if it works, or I'll let you know if I try it first.

slapNUT 07-21-2003 09:39 PM

NOPE! That didn't help either. The only thing I can change in the /dev/v4l directory is the group. I can't change the user or the premissions?

A quick and dirty fix of course would be to put a chmod in the /etc/rc.d/rc.local file.

Sorry I can't help.

If you figure it out please post it here.

acid_kewpie 07-22-2003 03:14 AM

no problem, thanks for trying though!

slapNUT 07-22-2003 07:51 PM

Well I was snoopping through /etc/devfsd.conf and came across this line:
# Uncomment this to let PAM manage devfs
REGISTER .* CFUNCTION /lib/security/pam_console_apply_devfsd.so pam_console_apply_single $d$

Then I looked in /etc/security/console.perms and found this line:
<console> 0600 <v4l> 0600 root.sys

If your setup is like mine then you just edit the console.perms file and restart devfsd.

acid_kewpie 07-23-2003 03:08 AM

looks promising, i'll check it out, ta.


All times are GMT -5. The time now is 03:22 PM.