Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-18-2004, 07:21 AM
|
#1
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Rep:
|
KDE 3.2.1 + sound = denied as user
After upgrading to KDE 3.2.1 I get the following message on startup of KDE as a user:
Sound server informational message:
Error while initializing the sound driver:
device: default can't be opened for playback (Permission denied)
The sound server will continue, using the null output device.
If I start KDE as root the sound works fine. As a user I can play MP3 files also, but I don't get the startup sound that KDE makes. So I know it is not a configuration problem with my sound card.
I realized this was a permission problem. Yeah the "Permission Denied" part was like a flashing neon sign. So initially I tried to change the permissions on /dev/dsp0 & /dev/midi00 & /dev/mixer0. That didn't work so I changed them back to their original permissions.
Then I decided that maybe their was a group for audio or something. So I sent into /etc/groups and looked for something. Nothing looked obvious to me that would cure this issue.
My question is how/where do I change permissions out to get this to work as a user?
Using Slackware 9.1, the only thing I have changed from the default install is KDE 3.2.1 upgrade.
Yes, I am new to slackware.
Thanks for any help.
|
|
|
04-18-2004, 07:37 AM
|
#2
|
Member
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62
Rep:
|
I had that when i upgraded kde.
From memory(?) you have to do (as root obviously)
chmod 666 /dev/dsp*
chmod 666 /dev/mixer*
to allow all users access to sound.
|
|
|
04-18-2004, 08:19 AM
|
#3
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Original Poster
Rep:
|
I tried changing those permissions. It still gives me the same error. I previously tried a
chmod 777 /dev/dsp and other relevant /dev files
I tried the 666 flag too, just to make sure. Did not work.
Thanks for the reply though.
|
|
|
04-18-2004, 08:39 AM
|
#4
|
Member
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62
Rep:
|
did you remember the * wildcard so all relevant files are changed?
|
|
|
04-18-2004, 08:44 AM
|
#5
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Original Poster
Rep:
|
Yes, I was careful to include that portion.
I guess I should add I am coming from FreeBSD to Slackware so I do have some experience. The most annoying part of this is I had a similar problem in BSD, but I can't recall how I fixed it. It may not be the same in Linux anyway.
Edited: Spelling error.
Last edited by silverback011; 04-18-2004 at 08:46 AM.
|
|
|
04-18-2004, 01:29 PM
|
#6
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
try
Code:
adduser silverback011 audio
|
|
|
04-18-2004, 06:23 PM
|
#7
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Original Poster
Rep:
|
Tried that and I received a message like:
-user silverback011 already exists; please choose another Login name for new user[]
So, I guess there is no audio group.
|
|
|
04-18-2004, 10:29 PM
|
#8
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
Must be a formatting mistake. There has to be an audio group if you can get sound as root. Hmmm. useradd? Does Slack have a user-configurator?
|
|
|
04-19-2004, 06:09 AM
|
#9
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Original Poster
Rep:
|
Not that I am aware of. I tried the user manager built in with KDE (KUser). I usually don't like these tools..... It didn't show a audio group. I didn't see one in /etc/groups either.
I can live with this. I just can't use that cool "You've got mail!!" sound effect in KDE. However, I can still use my mp3's. I thought this would be an easy fix.
Could this be related to the permissions set on the arts driver?
|
|
|
04-19-2004, 07:05 AM
|
#10
|
Senior Member
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Rep:
|
I think you hit on it. If you can hear mp3s then you are part way there. Whatever you are listening to your mp3s with must not be using aRTS, I bet. If you want to try and get that message to stop, you have a few things you can try. If you go into the KDE control panel and select the sound system, you have the opportunity to turn it off, which should stop the permissions dialog to pop up. Or, you can try with other devices. Under the hardware tab, try using a device other than aRTS. For example, if you're using ALSA, try that. Good luck.
|
|
|
04-19-2004, 07:19 AM
|
#11
|
Member
Registered: May 2003
Location: Pensacola, Florida
Distribution: Debian, Slackware, Amigo, Ubuntu
Posts: 221
Rep:
|
Add the user to the sys group and reboot. That works for me when I use aRTS and ESD.
|
|
|
04-19-2004, 05:59 PM
|
#12
|
LQ Newbie
Registered: Apr 2004
Location: Florida USA
Posts: 23
Original Poster
Rep:
|
Thanks to everyone for their help.
The problem is fixed now.
I added the user to the group 'sys' as Ninja Cow suggested, and now aRTS works. Never would have thought that 'sys' included sound system.
Ninja Cow....reminds me of a character in a really bad B-Movie named "Kung Pao". I really liked the fighting cow scene. Any chance that is where your handle originated?
|
|
|
01-07-2006, 01:43 AM
|
#13
|
LQ Newbie
Registered: Mar 2004
Location: Canada, Quebec
Distribution: Xandros 1.0
Posts: 2
Rep:
|
sys !?!
Quote:
Originally Posted by Ninja Cow
Add the user to the sys group and reboot. That works for me when I use aRTS and ESD.
|
... and wich devices or other kind of files need sys group to be used or altered ? You're right, be member of sys solved the problem but at what cost ?
|
|
|
All times are GMT -5. The time now is 02:04 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|