Re: VNC cannot access sound card without local login on Linux
Timothy J. Massey said: Hello! I am relatively new to VNC on Linux, though I have been using it for some time on Windows. I'm building a MP3 player in a Mini-ITX computer for my living room. It uses Linux and VNC to run XMMS and play MP3's through the host's sound card. This works, but only if the VNC user is *also* logged into the computer locally. Why is this? Why can't a VNC user access the sound card without having the same user logged in locally? This isn't a VNC issue, it's a permissions issue. I have tested this on Redhat 9 and Fedora Core 1: same results. You want to check out: man 5 console.perms By default Red Hat (an probably other distros, but I'm not sure) is set to give the user logging into the console certain permissions to devices, then revert back to a default when the user logs out. These default settings can be changed in the /etc/security/console.perms file. -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
Hello! Thank you very much for your response. I will investiage console.perms, but I guess I will, rather, have to find a way to give the user those permissions *outside* of console.perms. However, I greatly appreciate the information. I will search further. Tim Massey Original Message from William Hooper [EMAIL PROTECTED]: Timothy J. Massey said: Hello! I am relatively new to VNC on Linux, though I have been using it for some time on Windows. I'm building a MP3 player in a Mini-ITX computer for my living room. It uses Linux and VNC to run XMMS and play MP3's through the host's sound card. This works, but only if the VNC user is *also* logged into the computer locally. Why is this? Why can't a VNC user access the sound card without having the same user logged in locally? This isn't a VNC issue, it's a permissions issue. I have tested this on Redhat 9 and Fedora Core 1: same results. You want to check out: man 5 console.perms By default Red Hat (an probably other distros, but I'm not sure) is set to give the user logging into the console certain permissions to devices, then revert back to a default when the user logs out. These default settings can be changed in the /etc/security/console.perms file. -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
Timothy J. Massey said: Hello! Thank you very much for your response. I will investiage console.perms, but I guess I will, rather, have to find a way to give the user those permissions *outside* of console.perms. Trust me, you want to change the console.perms defaults or any permissions you set will be changed on every reboot. -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
Timothy J. Massey wrote: Hello! Thank you very much for your response. I will investiage console.perms, but I guess I will, rather, have to find a way to give the user those permissions *outside* of console.perms. However, I greatly appreciate the information. I will search further. I took the easy way out. I chmod 666'ed all of the devices listed as audio devices in console.perms and now VNC users can play sounds. I'm sure some nefarious hacker can now hack into my MP3 player and play Satanic messages without my permission, but I'm willing to risk it... Thanks for the info. I'll look for a more elegant solution, but this works for now. Tim Massey ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
On Mon, Dec 22, 2003 at 01:58:20PM -0500, William Hooper wrote: Timothy J. Massey said: Hello! Thank you very much for your response. I will investiage console.perms, but I guess I will, rather, have to find a way to give the user those permissions *outside* of console.perms. Trust me, you want to change the console.perms defaults or any permissions you set will be changed on every reboot. Just find out what the group is of the sound device (maybe /dev/dsp). It might be a group like sound or somesuch. Now add your user to that group. ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
Mike Fedyk said: On Mon, Dec 22, 2003 at 01:58:20PM -0500, William Hooper wrote: Timothy J. Massey said: Hello! Thank you very much for your response. I will investiage console.perms, but I guess I will, rather, have to find a way to give the user those permissions *outside* of console.perms. Trust me, you want to change the console.perms defaults or any permissions you set will be changed on every reboot. Just find out what the group is of the sound device (maybe /dev/dsp). It might be a group like sound or somesuch. Now add your user to that group. A valid point (because it doesn't look like console.perms changes the group). Not a good idea in this case without changing the group, because IIRC /dev/dsp is root.root by default. Anyway, this is getting even further OT. -- William Hooper ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
On Mon, Dec 22, 2003 at 03:10:54PM -0500, William Hooper wrote: Mike Fedyk said: Just find out what the group is of the sound device (maybe /dev/dsp). It might be a group like sound or somesuch. Now add your user to that group. A valid point (because it doesn't look like console.perms changes the group). Not a good idea in this case without changing the group, because IIRC /dev/dsp is root.root by default. Anyway, this is getting even further OT. Yeah, I was going to get into creating a group and everything, but it's already done for me on debian, and I don't know what the others do... ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list
Re: VNC cannot access sound card without local login on Linux
On Mon, Dec 22, 2003 at 02:04:33PM -0500, Timothy J. Massey wrote: I took the easy way out. I chmod 666'ed all of the devices listed as audio devices in console.perms and now VNC users can play sounds. I'm OUCH! Use this script: ./foo username group dev #!/bin/sh user=$1 group=$2 dev=$3 addgroup $group chgrp $group /dev/$dev adduser $user $group chmod 660 /dev/$dev ___ VNC-List mailing list [EMAIL PROTECTED] To remove yourself from the list visit: http://www.realvnc.com/mailman/listinfo/vnc-list