Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

udev permissions on /dev/dvb (docker)

Options

Comments

  • Registered Users Posts: 13,991 ✭✭✭✭Johnboy1951


    I wonder if changing the rtl rule to this would have any effect?
    SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE:="0666", ENV{ID_SOFTWARE_RADIO}="1"

    I cannot recall exactly why, but I had to change that from 0660 to 0666 some time ago.


  • Registered Users Posts: 7,882 ✭✭✭frozenfrozen


    Just tried that now, permissions of the file are now:
    root@debian:/home/user# ls -l /dev/dvb/
    total 0
    drwxr-xr-x 2 root root 120 Sep 13 18:15 adapter0
    root@debian:/home/user# ls -l /dev/dvb/adapter0/
    total 0
    crw-rw-rw- 1 user video 212, 0 Sep 13 18:15 demux0
    crw-rw-rw- 1 user video 212, 1 Sep 13 18:15 dvr0
    crw-rw-rw- 1 user video 212, 3 Sep 13 18:15 frontend0
    crw-rw-rw- 1 user video 212, 2 Sep 13 18:15 net0
    root@debian:/home/user#
    

    running docker-compose up using /dev/dvb/adapter:/dev/dvb/adapter - now working

    Many thanks johnboy.

    A clean boot of the virtual machine is now bringing up a working tvheadend instance.. :cool:


  • Registered Users Posts: 13,991 ✭✭✭✭Johnboy1951


    Just tried that now, permissions of the file are now:
    root@debian:/home/user# ls -l /dev/dvb/
    total 0
    drwxr-xr-x 2 root root 120 Sep 13 18:15 adapter0
    root@debian:/home/user# ls -l /dev/dvb/adapter0/
    total 0
    crw-rw-rw- 1 user video 212, 0 Sep 13 18:15 demux0
    crw-rw-rw- 1 user video 212, 1 Sep 13 18:15 dvr0
    crw-rw-rw- 1 user video 212, 3 Sep 13 18:15 frontend0
    crw-rw-rw- 1 user video 212, 2 Sep 13 18:15 net0
    root@debian:/home/user#
    

    running docker-compose up using /dev/dvb/adapter:/dev/dvb/adapter - now working

    Many thanks johnboy.

    A clean boot of the virtual machine is now bringing up a working tvheadend instance.. :cool:


    Glad it did what you needed ;)
    (I was not at all sure)


  • Registered Users Posts: 2,719 ✭✭✭niallb


    Had you tried adding the 'user' user to the 'video' group?

    usermod -G video user


  • Registered Users Posts: 4,965 ✭✭✭opus


    niallb wrote: »
    Had you tried adding the 'user' user to the 'video' group?

    usermod -G video user

    That's what I've done at work to allow people access serial ports in the past, different device name obviously.


  • Advertisement
  • Registered Users Posts: 7,882 ✭✭✭frozenfrozen


    Before I was trying to make this device persistently mounted at something like /dev/dvb/adapter101 but couldn't manage to do that

    Reason for that was so when I added other devices they would all be consistently adapter101,102,103 etc rather than potentially swapping their order when being automatically assigned to adapter0,1,2,3 on boot

    when that didn't work that led me to adding the OWNER within udev.rule which I was already messing with for the above.

    Adding that group to my user would have been a much easier fix from the start to achieve the same thing, thanks.


Advertisement