LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-10-2003, 12:17 AM   #1
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Rep: Reputation: 15
Sound works when logged in as GUI root


What could I look and copy to make non-root sound work?
 
Old 08-10-2003, 01:53 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
most likely just a permission problem...

Check
ls -l /dev/dsp*
ls -l /dev/mix*

and if users have no permissions,
change that using chmod ;)

Cheers,
Tink
 
Old 08-10-2003, 01:59 AM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
If you're using /dev/dsp you can chmod it. A bit of a debate has gone on about what you should chmod it *to* but do a search on 'chmod /dev/dsp' and it'll probably turn up. If that's not it, I'm not sure what to tell you.

-- Must. Hit. Refresh.

Sorry.
 
Old 08-10-2003, 02:23 AM   #4
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Thanks for the help!

People can debate about what to change it to all they want. I'm the only one on this computer so 777 suits me fine! Or is that a no-no?
 
Old 08-10-2003, 03:27 AM   #5
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I think I did 666 myself though I'll probably change it to 660 or whatever was recommended - just wanted it to work at all first - but it's your box. I think I have to add myself to a group to make 660 work. I need to go re-read the thread.

-- Well, I should add that 777 would be unnecessary, I think, and making it world read-and-write-able means people could screw with your sound - though I would think they'd have better (or worse) things to do if they were running around in your box. It's just a good principle to loosen permissions as little as necessary.

Last edited by slakmagik; 08-10-2003 at 03:30 AM.
 
Old 08-18-2003, 01:55 PM   #6
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Okay,
/dev/dsp and /dev/mix are both set to rw-rw-rw- (666?) but that didn't do anything to fix it. What else could it be do you all think?
 
Old 08-18-2003, 08:49 PM   #7
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
try 777 on /dev/dsp* /dev/snd* /dev/mixer* if that works you know it is permissions then you can change them to the permissions you want that might be a bit safer
 
Old 08-18-2003, 10:07 PM   #8
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Nope, that didn't do it.
 
Old 08-18-2003, 10:20 PM   #9
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
ok, hmm, but it worls as root. are you using devfs?
 
Old 08-18-2003, 10:43 PM   #10
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
devfs? What do you mean.
 
Old 08-18-2003, 10:49 PM   #11
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Arch
Posts: 1,374

Rep: Reputation: 47
if you have to ask I am 85% sure you do not have it ;-D hmm. I have a question you probably can't answer and I lack knowledge to ask properly, but there are per user scripts for when a user logs in, bash scripts that set path and such. I do not know where they are or what they are called as I have never needed to change them, but there is a very very low possibility that the ound-card modules load through this file (I doubt it and almost didn't mention it don't mock me people)

a drastic test would be to chmod 777 /dev -R (recursively give unrestricted access to all devices and make yourself to volnurable.)

one more option I lack the knowledge to go into is the sticky bit, sticky bit is an extra permission thing, like it can allow someone to run a program that is 750 or so as root (ping for example is this way on most systems, without running it as root it does not work, yet most users can anyway (long story)) but I have never messed with the sticky bit so it is out of my expertiese.. and I have a question, how do I change my profile so I am no longer listed as novice?
 
Old 08-19-2003, 09:32 PM   #12
bmike1
Member
 
Registered: Jul 2003
Posts: 133

Original Poster
Rep: Reputation: 15
Well, I tried chmod 777 /dev -R but it did not do anything. I thought that might also help the modem problem I am having........ gee. The two are probably related! The modem dials, completes the handshake, then tells me that the peer said to disconnect.
 
  


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
gui login failed despite users created. but Text mode + root + startx works OK Emmanuel_uk VectorLinux 2 11-21-2005 03:41 PM
wolf et needs to be logged in as root for sound (permission issue) dr_unpleasant Linux - Software 0 07-17-2004 02:26 PM
kde much slower to start when logged in as alan than logged in as root arubin Slackware 0 04-26-2004 04:27 PM
mozilla works fine when logged in as a user but crashes when logged in as root jimi Linux - General 6 04-02-2003 08:34 PM
Only Sound when logged in as Root iancork01 Linux - Software 6 03-27-2003 06:59 PM

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

All times are GMT -5. The time now is 04:42 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
Open Source Consulting | Domain Registration