LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-19-2004, 10:01 PM   #1
neuroX
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 10

Rep: Reputation: 0
permission issues.


okay, i just got slackware 9.1 installed and so far, it's great.
the only thing is, there are some wacky permission things going on.
everything works fine as root, but as my regular user, strange things happen. first off, alsa seems to not work when run by the regular user. also, my browser, when run as non-root, cannot save files to my home directory. various other things along these lines occur, as soon as I su to root, things work again. where should I start fixing this problem? did I make the user wrong? are my permissions on my home dir wrong? I am at a loss.
 
Old 01-19-2004, 10:52 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I'm having similar problems, specifically with ALSA.

What devices does it use? so far I have done chmod 666 on:
dsp*
mixer*
sequencer*
audio*
midi*
sndstat*

and some others I can't remember - I've just been granting permissions to anything I find mentioned on any ALSA-related site.

Also, I've added my "normal" user to the audio group.

I read at http://www.sonic.net/~rknop/linux/debian_alsa.html that the /etc/init.d/alsa script might fight with you and reset permissions at startup and shutdown - I'm not versed in scripting language, but my C ain't shabby, and I can understand most of what's being done- it doesn't seem to set permissions anywhere. Both fixes recommended on that page break my modprobe.conf, and convince it I don't have modules installed. I also can't find any evidence of permissions being changed - all of the devices listed above retain their 666 permission throughout ALSA starts/stops. They're also still audio group, and so is the user.

Yet, whenever I log in with my non-root user, I get:

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.

And when I log into KDE as root, everything's peachy.

I'm running ALSA 1.0.1, just compiled today, and whatever aRTsd is in debian /unstable.
Soundcard is Crystal Fusion, mosule: cs46xx

I've seen a LOAD of people with this problem, and I've been working on it now for a couple days with no headway. every bit of literature I've read says
chmod a+rw dev/dsp dev/mixer dev/sequencer dev/midi
and I should be rocking - but I'm not!

Can't live without XMMS much longer!
--Rounan
 
Old 01-20-2004, 05:28 AM   #3
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
read this thread, the ideas Kovacs used may help, even if you're not using
the 2.6 kernel try anyways.

http://www.linuxquestions.org/questi...highlight=alsa
 
Old 01-20-2004, 08:59 AM   #4
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
thanks, 320mb. That thread helped me get things installed and running.

I'm not having problems with sound output, however - when I log in as root, everything's fine and dandy, loud and clear. it's some obscure permissions setting that's not properly configured.
As I said, I've done chmod 666 dsp midi mixer sequencer and a bunch more, and I'm still getting permission denied errors.

What's device: default? Is this an ALSA or an aRTs artifact? /dev/default doesn't exist (of course). I have aRTs set to output via ALSA, not "autodetect" or "default" or any such thing.

Is there a command to monitor a module or process in order to determine which devices it's touching?

--Rounan
 
Old 01-20-2004, 10:03 PM   #5
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
I -FINALLY- got it working.

Apparently, ALSA 1.0.1 uses the /dev/snd directory. Not only do you have to give read and write permissions, but also ENTRY permissions! Who knew?

chmod a+rwx /dev/snd
cd /dev/snd
chmod a+rw *

and I also have everything else in the "audio" group open to all - makes the group meaningless, I should probably change that back.

--rounan
 
Old 01-20-2004, 10:46 PM   #6
neuroX
LQ Newbie
 
Registered: Oct 2003
Distribution: Slackware 9.1
Posts: 10

Original Poster
Rep: Reputation: 0
thanks for the help.

my other alsa-related problem is goes like this: when playing music, every once in a while the audio will sloooooow waaaaay down and get kind of low and crackly. this only lasts for about 5 seconds, but happens pretty often.... this ever happen to anyone else? should I get the new ALSA? go back to OSS?
 
Old 02-15-2004, 09:07 PM   #7
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Rep: Reputation: 15
I'd like to resurrect this one...

I've got system sound, MPlayer sound, cdda sound in Xmms 1.2.9, sound from kscd.

But I can't get streaming, mp3, ogg, with all plugins enabled. Notably, I could stream with Xmms 1.2.7, before updating it.

I think my problem is also a permissions issue.

I had reset /dev/dsp with a chmod 660 /dev/dsp and, separately, chmod 666 /dev/dsp. But when I checked the permissions again ( a week later), /dev/dsp was back to 600.

However, I have no /dev/snd. Should it be there? What should be in it? Why wouldn't it exist?

I'd appreciate any help.
 
Old 02-17-2004, 06:40 AM   #8
SiriusAB
Member
 
Registered: Feb 2003
Location: S_AB
Distribution: FC4; FC3; RH 9.0; XP
Posts: 86

Rep: Reputation: 15
Got the problem fixed here:

http://www.linuxquestions.org/questi...hreadid=147021
 
  


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
DCOPserver/permission issues (still) Thanotos Slackware 10 11-22-2005 04:37 PM
Help Needed for Root Password/permission issues. Ebenonce General 3 08-19-2004 05:57 AM
KNOPPIX does not recognize FAT32, also permission issues. Lechium Linux - Hardware 4 06-02-2004 06:16 PM
nfs permission issues. rtaft Linux - Networking 2 02-19-2004 02:20 PM
Mount and User permission issues Aerlock Linux - Newbie 9 10-19-2003 02:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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