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

Notices


Reply
  Search this Thread
Old 10-21-2007, 07:57 PM   #1
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Rep: Reputation: 52
No sound for users in openSUSE 10.3, but root is OK


I recently upgraded from openSUSE 10.2 to 10.3 and now the sound will not work when logged in as as either of two users. It worked fine with versions 10.0 and 10.2, and it works fine with 10.3 when logged in as root. The user belongs to the audio group and yes, the volume is turned up. I would appreciate any suggestions.
 
Old 10-23-2007, 06:59 AM   #2
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
A related thread suggests:

"Try these permissions

chmod 666 /dev/mixer
chmod 666 /dev/mixer0
chmod 666 /dev/dsp
chmod 666 /etc/rc.d/rc.alsa
chmod -R 666 /dev/snd
chmod -R 666 /dev/sound"

That's a bit heavy handed. I'd check first what permissions and owner/group the files have. It's very likely to be a permission problem if it works for root and not users. If the users are in the audio group, then either the device or configuration files aren't, or they are but aren't group-readable.

I'd also check what the udev system does with permissions. The /dev files should be created dynamically, so a manual fix as above may be overridden at the next boot.

HTH,
-nick
 
Old 10-23-2007, 07:02 AM   #3
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
This site tells you about udev rules and permissions, in case that's relevant:

http://www.reactivated.net/writing_u...html#ownership

-nick
 
Old 10-23-2007, 11:17 PM   #4
Baloo_PNW
LQ Newbie
 
Registered: Jun 2006
Posts: 12

Rep: Reputation: 0
I had the same problem
I added my user to the audio group and that fixed it for me
 
Old 10-23-2007, 11:20 PM   #5
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Thank you for the reply Nick. I checked the files and the permissions seem to look OK. Here is an example:

crw-rw----+ 1 root audio 14, 3 2007-10-23 20:05 dsp

There is one thing that I can't remember--the meaning of the + sign on the end. I did a Google search for it and looked in a reference book and did not find anything, although I recall battling this before (although I can't remember where). It appears on essentially all of the audio-related files you listed except these:

drwxr-xr-x 2 root root 420 2007-10-23 20:05 snd
-rwxr-xr-x 1 root root 5345 2007-09-21 16:39 alsasound

Since snd is a directory, that should be OK, and all the files in that directory have the format:

crw-rw----+ 1 root audio 116, 6 2007-10-23 13:04 midiC0D0

I suspect that alsasound is a configuration file, so it makes sense that it assigns group permissions to root.
 
Old 10-24-2007, 04:26 AM   #6
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
Quote:
Originally Posted by Cogar View Post
There is one thing that I can't remember--the meaning of the + sign on the end. I did a Google search for it and looked in a reference book and did not find anything, although I recall battling this before (although I can't remember where).
Yes, it's very difficult to google for "+" isn't it! :^)

This indicates that there are extended ACL permissions on the files. I suspect this is the root of the problem. Although the regular permissions look OK, presumably the ACLs are set such that only root can access the files.

Have another google for POSIX ACLs in Linux. I found:
http://www.suse.de/~agruen/acl/linux-acls/online/ which may help. You should be able to remove the extra permissions, unless they're there for a good reason.

Cheers,
-nick
 
Old 10-25-2007, 02:24 PM   #7
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Thanks again Nick. I poked around with umask and not discovered any cures yet. I will keep looking into the issue.
 
Old 10-26-2007, 02:57 AM   #8
Nick_Battle
Member
 
Registered: Dec 2006
Location: Bracknell, UK
Distribution: SUSE 13.1
Posts: 159

Rep: Reputation: 33
I think you just want "setfacl -b" - ie. return the files to base permissions and remove all ACL extended permissions. umask only comes into it when you create new files, not access existing ones.

HTH,
-nick
 
Old 10-26-2007, 10:08 AM   #9
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
Are you able to use USB sticks normally (mount them in KDE)? What is the output of 'getfacl /dev/dsp'? Does 'rcresmgr status' return 'running'?
 
Old 10-26-2007, 09:53 PM   #10
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by auxsvr View Post
Are you able to use USB sticks normally (mount them in KDE)? What is the output of 'getfacl /dev/dsp'? Does 'rcresmgr status' return 'running'?
Yes, USB sticks behave properly.

---

getfacl /dev/dsp output:

Code:
getfacl: Removing leading '/' from absolute path names
# file: dev/dsp
# owner: root
# group: audio
user::rw-
user:cogar:rw-
group::rw-
mask::rw-
other::---
---

rcresmgr status output:

Code:
Checking for resource manager:
 
Old 10-26-2007, 09:55 PM   #11
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by Nick_Battle View Post
I think you just want "setfacl -b" - ie. return the files to base permissions and remove all ACL extended permissions. umask only comes into it when you create new files, not access existing ones.

HTH,
-nick
OK. I don't have the time to do it right now with all the various files, but I will do so when I do have the time.
 
Old 10-27-2007, 12:39 AM   #12
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
Type 'rcresmgr start' as root. This service needs to be started to handle device permissions via ACLs. You shouldn't remove the ACLs (they'll be reset on login anyway).
 
Old 10-27-2007, 03:14 AM   #13
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
If you add the regular users to the audio group and run "alsaconf" and then set your mixer settings, you may get audio working.

The permissions of /dev/dsp and /dev/snd/* were correct to begin with. This is an indication that udev is working because it is what added your username to the acl when it was dynamically created.
 
Old 10-27-2007, 05:30 AM   #14
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by auxsvr View Post
Type 'rcresmgr start' as root. This service needs to be started to handle device permissions via ACLs. You shouldn't remove the ACLs (they'll be reset on login anyway).
OK, I did that and it now shows as "running."
 
Old 10-27-2007, 05:33 AM   #15
Cogar
Senior Member
 
Registered: Oct 2005
Location: It varies, but usually within 100 feet of a keyboard.
Distribution: Fedora 10, Kubuntu 8.04, Puppy 4.1.2, openSUSE 11.2
Posts: 1,126

Original Poster
Rep: Reputation: 52
Quote:
Originally Posted by jschiwal View Post
If you add the regular users to the audio group and run "alsaconf" and then set your mixer settings, you may get audio working.
I also use Arch on this computer and that is the method I used for it (and it is behaving normally). Although I normally use YaST to set up sound in SUSE, as a check, I tried it with openSUSE and it did not work.

---

I also looked into reconfiguring sound with YaST again. I have three card models that appear is YaST:

Intel ICH5
P4P800 Mainboard (the board is actually a P4C800-E Deluxe)
Santa Cruz (the card is a PCI Turtle Beach Santa Cruz)

When I choose the "Edit" option for the Intel ICH5 card, the configuration window disappears--as though the application is immediately killed.

When I choose the "Edit option for the P4P800 Mainboard, regardless of the option I choose, I get the following message:

Quote:
An error occurred during the installation of P4P800 Mainboard. The kernel module snd-intel8x0 for sound support could not be loaded. This can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
The configuration for the Santa Cruz card appears to work normally, but when I connect the speakers to that card (which I no longer use normally), I get no sound from it either—and that includes when logging in as root.

Incidentally, the Intel ICH5 “sound card” works when logged in as root, but that is all that is working.
 
  


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
Sound works on root but not on user(OpenSuse 102) WDSnav Linux - Newbie 2 09-23-2007 12:51 AM
RHEL3 Mounting USB after reboot and between reboots: root and non-root users Luis Nunes Linux - Hardware 0 07-20-2005 08:32 AM
Alsa + sound works on root, but not on users! r4f Linux - Software 2 04-02-2005 05:43 AM
Flash sound only works in root. Not users. RHLinuxGUY Slackware 3 10-01-2004 04:18 PM
Uh oh I have another one, users, root and sound bmuseful Mandriva 3 10-02-2003 05:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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