[mythtv-users] [OT] Making DVD-RW drive available to MythTV and VNC users?

Jonathan Rogers jonner at teegra.net
Thu Oct 4 04:18:13 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ben Lancaster wrote:
> Hi guys,
> 
> I'm sure people on the list have have come accross this.
> 
> OK, so I have one DVD-RW drive in my house... in my Myth Box. It  
> would seem that Linux (F7 specifically) only gives the necessary  
> permissions to the drive for the user who 'owns' localhost:0.
> 
> # stat /dev/scd0
>    File: `/dev/scd0'
>    Size: 0               Blocks: 0          IO Block: 4096   block  
> special file
> Device: 10h/16d Inode: 5164        Links: 1     Device type: b,0
> Access: (0666/brw-rw----)  Uid: (  501/mythtv)   Gid: (    6/    disk)
> 
> 501/mythtv is the user that my front end is running on. I also have a  
> VNC session running under a different UID all the time for picking up  
> personal e-mails etc from work via an SSH tunnel, I use this VNC  
> session to burn CDs/DVDs non-Myth media with Graveman/K3B. The  
> trouble is, every time I insert the disc, I have to go in and  
> manually change the permissions of the device so that the user my VNC  
> session is running as can access it.
> 
> Is there a decent solution for this, so both the VNC user and  front  
> end can access the device for reading/writing?
> 
> I'm using Fedora 7 on an x86_64, with a nondescript Sony drive (not  
> that it matters).

Probably the easiest thing to do would be to make any user you want to
have access to the drive a member of the "disk" (GID 6) group. I believe
this is all configured by PAM rather than Linux itself, so it should all
be configurable, though I don't know exactly what to edit.

Jonathan Rogers
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHBGmFMs6f82yVS5wRApk7AJ4x0d/HuXygAqAgsb8ckzffEfn02wCgjgdA
BsztIKPwSSa+UYJ3UfbU9BA=
=DKX4
-----END PGP SIGNATURE-----


More information about the mythtv-users mailing list