LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2004, 07:21 AM   #1
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Rep: Reputation: 15
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.
 
Old 04-18-2004, 07:37 AM   #2
BlankFrank
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62

Rep: Reputation: 15
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.
 
Old 04-18-2004, 08:19 AM   #3
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 04-18-2004, 08:39 AM   #4
BlankFrank
Member
 
Registered: Jan 2004
Location: Scotland
Distribution: Suse 9.2 (AMD64) / Mandrake 10
Posts: 62

Rep: Reputation: 15
did you remember the * wildcard so all relevant files are changed?
 
Old 04-18-2004, 08:44 AM   #5
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 04-18-2004, 01:29 PM   #6
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
try
Code:
adduser silverback011 audio
 
Old 04-18-2004, 06:23 PM   #7
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Original Poster
Rep: Reputation: 15
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.
 
Old 04-18-2004, 10:29 PM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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?
 
Old 04-19-2004, 06:09 AM   #9
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Original Poster
Rep: Reputation: 15
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?
 
Old 04-19-2004, 07:05 AM   #10
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
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.
 
Old 04-19-2004, 07:19 AM   #11
Ninja Cow
Member
 
Registered: May 2003
Location: Pensacola, Florida
Distribution: Debian, Slackware, Amigo, Ubuntu
Posts: 221

Rep: Reputation: 30
Add the user to the sys group and reboot. That works for me when I use aRTS and ESD.
 
Old 04-19-2004, 05:59 PM   #12
silverback011
LQ Newbie
 
Registered: Apr 2004
Location: Florida USA
Posts: 23

Original Poster
Rep: Reputation: 15
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?
 
Old 01-07-2006, 01:43 AM   #13
le_mulot
LQ Newbie
 
Registered: Mar 2004
Location: Canada, Quebec
Distribution: Xandros 1.0
Posts: 2

Rep: Reputation: 0
Exclamation 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 ?
 
  


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
Permission denied for root user shujja Linux - Newbie 9 10-28-2014 08:32 PM
User Access Denied dhUmra Linux - General 1 06-06-2005 05:57 PM
Sound With One user. not the other KDE digitalkid1128 Linux - Software 3 07-03-2004 04:34 PM
Sound at user KDE Login rls *BSD 2 06-26-2004 08:12 PM
Sound at user KDE Startup rls Slackware 0 06-26-2004 11:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:04 PM.

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
Open Source Consulting | Domain Registration