LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2004, 01:14 AM   #1
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 33
Sound permissions?


I have regular computer sounds and xmms makes sound under root, but not under a user. How do i give a user permission to audio. I had to chmod 666 /dev/hdc and /dev/hdd to give user rights to the cdrom drives and they are working, but no sound under a user?
 
Old 02-02-2004, 02:40 AM   #2
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
check out the permissions on /dev/dsp*
 
Old 02-02-2004, 08:39 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Quote:
Originally posted by Quis
check out the permissions on /dev/dsp*
and, look at the permission of /dev/mixer also

by default the volume sliders on kmix and/or aumix are set
LOW>>, re-adjust them and set as "new default".
 
Old 02-02-2004, 01:03 PM   #4
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
When i cat /dev/dsp* i get permission denied under a user. When under root i get a bunch of squares that keep repeating themselves. How do i give a certian user permission to audio?
 
Old 02-02-2004, 01:11 PM   #5
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
try: ls -l /dev/dsp*
set dsp/dsp0 to crw-rw-rw- or crwxrwxrwx
(chmod -c 666 /dev/dsp* or chmod -c 777 /dev/dsp*)
 
Old 02-02-2004, 01:12 PM   #6
tk31337
Member
 
Registered: Oct 2003
Location: Tucson, AZ
Distribution: Mandrake 10.0 Official
Posts: 193

Rep: Reputation: 31
If you only want a certain user to access sound (not everyone else as well) do this as root:

"chown <username> /dev/dsp"
"chmod 640 /dev/dsp"

^^ Changes ownership of /dev/dsp to the specified user, and changes perms to user -- read/write, group -- read, others -- none. Change the octal number based on what you want, first num is user, second is group, third is others. Octal code is quite simple once you get used to it. It's basically 4=Read, 2=Write, 1=Execute. So 4+2=Read/Write, 4+1=Read/Execute, and so forth from 0 to 7.
 
Old 02-02-2004, 03:24 PM   #7
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
I did what you said to do tk-*, but it didn't work. I was searching threads the other night and tried a few things (but can't remember what i did), so now when i try to use XMMS under a user i get these errors...

Please check that:
Your soundcard is configured properly
You have the correct output plugin selected
No other program is blocking the soundcard

It works fine under root though,so no problem there.
 
Old 02-02-2004, 03:36 PM   #8
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Try (as root)
Code:
chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi
 
Old 02-02-2004, 03:36 PM   #9
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
Alright, i got rid of those errors, but still no sound under a user; computer sounds or xmms
 
Old 02-02-2004, 03:39 PM   #10
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
I tried the chmod a+rw /dev/dsp /dev/mixer /dev/sequencer /dev/midi still nothing
 
Old 02-02-2004, 07:14 PM   #11
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
I find it's a good sign when the error messages start to change.
As root, run alsamixer. Use the left and right arrows to go along all the columns typing m to unmute the channels and use the up arrow to raise the levels.
 
Old 02-02-2004, 07:22 PM   #12
snacky
Member
 
Registered: Feb 2004
Distribution: Debian
Posts: 286

Rep: Reputation: 30
Changing permissions on those files did nothing - except for /dev/sequencer.

Change the permissions for /dev/dsp0, /dev/mixer0, and /dev/midi0.
 
Old 02-02-2004, 07:40 PM   #13
BaPu
LQ Newbie
 
Registered: Mar 2003
Location: France
Distribution: debian, gnome 2.6,kernel 2.6.4
Posts: 11

Rep: Reputation: 0
It sounds a bit complicated
Did you try as root: adduser name-of-user audio ?
 
Old 02-08-2004, 02:33 PM   #14
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
Ok, i have sound in GAIM when sending messages, but no other computer sounds under a user still. Why would i have sounds for that and not for GNOME or XMMS? I turned the sounds on and made sure all the volume controls are not muted.
 
Old 02-08-2004, 02:37 PM   #15
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Original Poster
Rep: Reputation: 33
I don't know if this will help, but i'll post it anyways

matrix@Linux-Powered:~$ ls -l /dev/dsp*
lrwxrwxrwx 1 matrix root 4 Feb 1 12:45 /dev/dsp -> dsp0
crw-rw-rw- 1 root sys 14, 3 Aug 29 03:47 /dev/dsp0
crw-rw-rw- 1 root sys 14, 19 Aug 29 03:47 /dev/dsp1
crw-rw-rw- 1 root sys 14, 35 Aug 29 03:47 /dev/dsp2
crw-rw-rw- 1 root sys 14, 51 Aug 29 03:47 /dev/dsp3
matrix@Linux-Powered:~$
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help Please - Sound problem with permissions hnad Slackware 9 04-06-2009 11:34 AM
sound permissions - not what you think!!! cvt Mandriva 1 04-13-2005 03:09 PM
sound permissions drrnsk8ter4 Linux - Software 5 04-11-2004 08:41 PM
KDE sound, permissions schbond Linux - Hardware 1 07-20-2003 02:33 PM
On Permissions AND SBLive! Sound kenshee Linux - Newbie 11 03-08-2003 04:26 PM


All times are GMT -5. The time now is 04:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration