Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound in games only as root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Zippy
n00b
n00b


Joined: 28 Jul 2002
Posts: 38

PostPosted: Mon Jan 06, 2003 2:28 pm    Post subject: Sound in games only as root Reply with quote

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
View user's profile Send private message
gaute
n00b
n00b


Joined: 30 Oct 2002
Posts: 52
Location: Bærum, Norway

PostPosted: Mon Jan 06, 2003 2:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
wHAcKer
Apprentice
Apprentice


Joined: 18 Oct 2002
Posts: 228
Location: Grimbergen, Belgium

PostPosted: Mon Jan 06, 2003 11:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Tue Jan 07, 2003 4:06 am    Post subject: Reply with quote

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
View user's profile Send private message
Zippy
n00b
n00b


Joined: 28 Jul 2002
Posts: 38

PostPosted: Tue Jan 07, 2003 9:14 am    Post subject: Reply with quote

Thanks a bunch guys, Ill try this little lot out tonight :)
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Jan 07, 2003 10:22 am    Post subject: Reply with quote

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
View user's profile Send private message
Zu`
l33t
l33t


Joined: 26 May 2002
Posts: 716
Location: BE

PostPosted: Tue Jan 07, 2003 3:23 pm    Post subject: Reply with quote

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 :lol:

good one ! ;)
Back to top
View user's profile Send private message
Carlos
Guru
Guru


Joined: 07 Aug 2002
Posts: 458
Location: Providence, RI

PostPosted: Tue Jan 07, 2003 3:52 pm    Post subject: Reply with quote

Zu` wrote:
lol :lol:

good one ! ;)
Thanks. :) Continuing the discussion here. :wink:
_________________
Man must shape his tools lest they shape him.
Back to top
View user's profile Send private message
Zippy
n00b
n00b


Joined: 28 Jul 2002
Posts: 38

PostPosted: Tue Jan 07, 2003 7:41 pm    Post subject: Reply with quote

Many Thanks guys!
Works a treat now...
I knw it had to be something simple (OK Im simple!)

Cheers...
:D
Zippy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum