LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-26-2003, 08:59 AM   #1
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
artsmessage - driver permission


Hi,

When I start kde I get a pop-up window:

Informational - artsmessage
Sound server informational message:
Error while initializing the sound driver
device /dev/dsp can't be opened (Permission denied)
The sound server will contine, using the null output device.


/dev/dsp is a symbolic link to /dev/sound/dsp and the permissions on this are:
crw------- 1 root root 14, 3 Jan 1 1970 /dev/sound/dsp

So, as root, I type 'chmod a+rw /dev/sound/dsp'.

This is fine until I reboot when the permissions are reset and the artsmessage reappears.

I guess that the driver file is recreated on each boot. So how can I get the kernel to give it the proper permissions?

I'm running Slackware 9 on a xeon dell, with my own recompiled 2.4.21-based kernel.

/sbin/lspci gives:

00:1f.5 Multimedia audio controller: Intel Corp. 82801DB AC'97 Audio (rev 01)


Thanks in advance,

John
 
Old 12-05-2003, 11:33 PM   #2
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
While searching for the answer to this precise problem - I've found lots of people posting the same problem, but less succinctly than the above post.

I have the same problem. If I "startx" as root - I have sound, and all is happy. If I "startx" as any other user - I get the "permission denied" issue as listed in the post above. I am using "Slackware 9.1", and at least in my case, "/dev/dsp" is actually a softlink to "/dev/dsp0".

lrwxrwxrwx root root /dev/dsp -> dsp0
-rw-rw--w- root sys /dev/dsp0

In another thread someone suggested changing the group of the /dev/dsp0 device to "sound" and making sure local users are also part of the "sound" group. Sounds good, but how can this be set permenantly (so as not to get reset on boot). In other-words, what's the "right" way to change permissions / ownership on a device.

Thanks
 
Old 12-06-2003, 11:14 AM   #3
GAVollink
Member
 
Registered: Apr 2002
Location: Bronx, NY
Distribution: Ubuntu
Posts: 371

Rep: Reputation: 34
O.K. I admit it - my last paragraph was written before I had checked all of the options (to the point that I am tempted to edit, and erase my own stupidity).

Anyway - it appears (through my observation of my Slackware 9.1 laptop) that the group ownership does not get reset on boot - only the actual permission mode flags. That means for SLACKWARE 9.1 - I was able to make the following changes...

chgrp users /dev/dsp0 # keep in mind that on 9.1 this is where my /dev/dsp softlink points
chgrp -R users /dev/snd/ # this entire directory may not need to be changed

For the original poster (whom probably gave up trying to find an answer here), I would suggest doing the same "chgrp -R users /dev/sound", as it appears that on your version all sound related info is at the same place.

Some folks may take issue with giving all users permission to any device - however - I'm on a laptop - so I want to make sure that all locally logged on users can use all available sound related devices. [edit to add the following:] If anybody knows any reason as to why the permissions for sound related devices should be tighter, I would be very interested to know what they are.

Last edited by GAVollink; 12-06-2003 at 11:19 AM.
 
Old 12-08-2003, 05:56 AM   #4
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Original Poster
Rep: Reputation: 30
Hi,

I was able to solve this problem, but can't remember exactly how. It may have been by recompiling (which I was doing anyway) to include support for devfs and omit support for all the cards I didn't have.

ls -l /dev/sound/dsp
crw-rw-rw- 1 root root 14, 3 Jan 1970 /dev/sound/dsp

I don't know what that initial 'c' means. Maybe it has a bearing?

John
 
Old 12-26-2003, 05:46 AM   #5
Y0jiMb0
Member
 
Registered: Jul 2003
Location: Valencia (Spain)
Distribution: slackware 11, FEDORA CORE 4, RHEL3, Gentoo...
Posts: 361

Rep: Reputation: 30
Quote:
I don't know what that initial 'c' means. Maybe it has a bearing?
It means "character device". Under linux, devices are categorized into "random access devices", or "block devices" (= "b" at the begining of a "ls -l" line) and "serial devices" or "character devices" (= "c" at the begining of a "ls -l" line).
Examples of character devices are mouses, sound cards,...
Examples of block devices are hard disks, floppy and disks in general
(take a look at "/usr/src/linux/Documentation/devices")
Regards

edit: syntax error

Last edited by Y0jiMb0; 12-26-2003 at 05:51 AM.
 
  


Reply



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
can't execute c++ binaries, "permission denied"... even though permission is 777 SerfurJ Programming 14 02-20-2009 04:50 AM
powervr driver startup and permission issues Jonny_Michaels Mandriva 0 05-14-2004 07:27 PM
Audio driver for ASUS board and HP 1150 Laser PRinter Driver ccatindia Linux - Hardware 1 05-11-2004 03:20 AM
ATI driver install (9700, permission denied) Jason711 Linux - Hardware 3 03-17-2004 03:48 PM
Error - artsmessage gendreau Linux - Software 1 05-17-2003 04:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 12:11 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