View previous topic :: View next topic |
Author |
Message |
Zippy n00b


Joined: 28 Jul 2002 Posts: 38
|
Posted: Mon Jan 06, 2003 2:28 pm Post subject: Sound in games only as root |
|
|
Im sure someone know tha answer to this...
I have Quake3 and UT installed. They run great as root, but theres no sound as a regular user.
I have ALSA running, sound device is intel8x0. Mobo is an Epox 4G4A+, P4 2.4gig etc (i845)
Any ideas please? |
|
Back to top |
|
 |
gaute n00b


Joined: 30 Oct 2002 Posts: 52 Location: Bærum, Norway
|
Posted: Mon Jan 06, 2003 2:34 pm Post subject: |
|
|
Is the user you are trying to get sound as in the group "audio"? This will give the user access to play sound. _________________ -gaute magnussen
Bibamus, moriendum est |
|
Back to top |
|
 |
wHAcKer Apprentice

Joined: 18 Oct 2002 Posts: 228 Location: Grimbergen, Belgium
|
Posted: Mon Jan 06, 2003 11:44 pm Post subject: |
|
|
I don't really know if it's safe and the group thing seems very nice to me right now actually but my solution to this problem was: chmod 777 /dev/dsp
again: i'm not sure if it's safe but i suppose it is and even if someone can play a sound on your pc: who cares? :p |
|
Back to top |
|
 |
Zu` l33t

Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Tue Jan 07, 2003 4:06 am Post subject: |
|
|
wHAcKer wrote: | I don't really know if it's safe and the group thing seems very nice to me right now actually but my solution to this problem was: chmod 777 /dev/dsp |
Unless you're not using devfs, those changes will go lost when you reboot. The right way to do it is to adjust /etc/devfsd.conf if needed and you'll see in that file some lines saying:
Code: |
haku ~ $ grep audio /etc/devfsd.conf
# the audio devices
REGISTER sound/.* PERMISSIONS root.audio 660
REGISTER snd/.* PERMISSIONS root.audio 660
|
You can adjust permissions there, if needed. The default configuration however, requires you to add the user to the audio group.
IIRC, chmod's on devices in /dev are only temporarily solutions, when using devfs. However it will work untill devfsd is started again (after a reboot, or after a kill -HUP on devfsd). At that moment the permissions you set with cmod will be overwritten with the ones that are set in /etc/devfsd.conf, meaning your changes will be lost. |
|
Back to top |
|
 |
Zippy n00b


Joined: 28 Jul 2002 Posts: 38
|
Posted: Tue Jan 07, 2003 9:14 am Post subject: |
|
|
Thanks a bunch guys, Ill try this little lot out tonight  |
|
Back to top |
|
 |
Carlos Guru


Joined: 07 Aug 2002 Posts: 458 Location: Providence, RI
|
Posted: Tue Jan 07, 2003 10:22 am Post subject: |
|
|
wHAcKer wrote: | I don't really know if it's safe and the group thing seems very nice to me right now actually but my solution to this problem was: chmod 777 /dev/dsp
again: i'm not sure if it's safe but i suppose it is and even if someone can play a sound on your pc: who cares? :p | A friend of mine did that, and I played a fun prank on him: he had started an sshd and gave me a user account to verify that he had a routable IP address. I made a wav file saying "Look behind you." on my box, uploaded it to his /tmp with sftp (he didn't give me a home directory), and played it with play - which I could do because /dev/dsp was world-writable. He definitely seemed pretty surprised. _________________ Man must shape his tools lest they shape him. |
|
Back to top |
|
 |
Zu` l33t

Joined: 26 May 2002 Posts: 716 Location: BE
|
Posted: Tue Jan 07, 2003 3:23 pm Post subject: |
|
|
Carlos wrote: | A friend of mine did that, and I played a fun prank on him: he had started an sshd and gave me a user account to verify that he had a routable IP address. I made a wav file saying "Look behind you." on my box, uploaded it to his /tmp with sftp (he didn't give me a home directory), and played it with play - which I could do because /dev/dsp was world-writable. He definitely seemed pretty surprised. |
lol
good one !  |
|
Back to top |
|
 |
Carlos Guru


Joined: 07 Aug 2002 Posts: 458 Location: Providence, RI
|
Posted: Tue Jan 07, 2003 3:52 pm Post subject: |
|
|
Zu` wrote: | lol
good one !  | Thanks. Continuing the discussion here.  _________________ Man must shape his tools lest they shape him. |
|
Back to top |
|
 |
Zippy n00b


Joined: 28 Jul 2002 Posts: 38
|
Posted: Tue Jan 07, 2003 7:41 pm Post subject: |
|
|
Many Thanks guys!
Works a treat now...
I knw it had to be something simple (OK Im simple!)
Cheers...
Zippy |
|
Back to top |
|
 |
|