Re: [expert] problem running sound as non-root user?
Dan Swartzendruber wrote: > > > bizarre. i didn't change anything and now it works :( Dan, I sympathize! I have had several similar experiences. I no longer continually ask "why ask why" out of curiosity sake. Simply take comfort in knowing the Linux Gods have smiled on your problem...at least this time. -- David Rankin Nacogdoches, Texas
Re: [expert] problem running sound as non-root user?
On 03-Apr-2001 David E.Fox wrote: > I'm surprised no one has mentioned the permissions on the > audio devices themselves. What, for instance, are the permissions > on /dev/dsp? If it's set to (for example) -rw-- root audio then no > wonder you can't use the device as a non-root user. > > You could circumvent the issue and just chmod 666 your audio > device files (/dev/audio, /dev/sequencer, /dev/dsp etc.) if you don't > expect someone telnetting in and sending stuff out your sound card in > the middle of the night and waking you up :). > [snip] If you didn't set them to 640 > (i.e., > -rw-rw--' then you wouldn't have been able to access them even if you > did > change the group info. > Well, we are all working with the setup mandrake gives us. I have a stock LM 7.2 install and you will note below that Mandrake made the one user (sundance) the owner of the "special" [audio] files (it might be worth remembering that /dev or device files are special files, none of which are executables per se.) crw---1 sundance audio 14, 14 Sep 27 2000 admmidi0 crw---1 sundance audio 14, 30 Sep 27 2000 admmidi1 crw---1 sundance audio 14, 46 Sep 27 2000 admmidi2 crw---1 sundance audio 14, 62 Sep 27 2000 admmidi3 crw---1 sundance audio 14, 12 Sep 27 2000 adsp0 crw---1 sundance audio 14, 28 Sep 27 2000 adsp1 crw---1 sundance audio 14, 44 Sep 27 2000 adsp2 crw---1 sundance audio 14, 60 Sep 27 2000 adsp3 crw---1 sundance audio116, 0 Sep 27 2000 aload0 crw---1 sundance audio116, 32 Sep 27 2000 aload1 crw---1 sundance audio116, 64 Sep 27 2000 aload2 crw---1 sundance audio116, 96 Sep 27 2000 aload3 crw---1 sundance audio116, 1 Sep 27 2000 aloadSEQ crw---1 sundance audio 14, 13 Sep 27 2000 amidi0 crw---1 sundance audio 14, 29 Sep 27 2000 amidi1 crw---1 sundance audio 14, 45 Sep 27 2000 amidi2 crw---1 sundance audio 14, 61 Sep 27 2000 amidi3 crw---1 sundance audio 14, 4 Sep 27 2000 audio0 crw---1 sundance audio 14, 20 Sep 27 2000 audio1 crw---1 sundance audio 14, 36 Sep 27 2000 audio2 crw---1 sundance audio 14, 52 Sep 27 2000 audio3 crw---1 sundance audio 14, 7 Sep 27 2000 audioctl The "c" indicates a character device: the whole thing is, first, a MAKEDEV issue. Only after that does it become a chmod issue. But still, the "rw" perm on the device is obviously sufficient for me (user==sundance) to have full access to sound (since I own it) and is the way Mandrake set things up. It's not quite clear whether the suggestion is that this represents a potential remote security exploit, but if so, then that is surely a mistaken suggestion. /dev files are all *special* files, and none of them are directly executable AFAIK. The thing with the above setup, all other things being equal, is that adding a new user after the fact, say sundown, to the audio group would likely be a "no joy" affair. Had I added several users during the LM install, it seems like the owner would have been root, the group "audio", all users put in the "audio" group, and the perms something like crw-rw. Does anybody else find it a bit odd the way Mandrake set this up for the lone sundance user? b5dave - 02-Apr-2001 23:16:37 -
Re: [expert] problem running sound as non-root user?
On Mon, 2 Apr 2001, David E.Fox wrote: > On Monday 02 April 2001 17:06, you wrote: > > At 09:41 AM 4/2/01 -0700, Stephen Lawrence Jr. wrote: > > >The proper solution to this problem is to add your USERNAME to the AUDIO > > >group. Don't change perms. > > I'm surprised no one has mentioned the permissions on the > audio devices themselves. What, for instance, are the permissions > on /dev/dsp? If it's set to (for example) -rw-- root audio then no > wonder you can't use the device as a non-root user. > > You could circumvent the issue and just chmod 666 your audio > device files (/dev/audio, /dev/sequencer, /dev/dsp etc.) if you don't > expect someone telnetting in and sending stuff out your sound card in > the middle of the night and waking you up :). my machine is secure, so that isn't an issue. > It probably is more sensible to add yourself to the audio group and make the > sound device files owned by that group. But you said it didn't work for you. > But, what were the permissions set to? If you didn't set them to 640 (i.e., > -rw-rw--' then you wouldn't have been able to access them even if you did > change the group info. bizarre. i didn't change anything and now it works :(
Re: [expert] problem running sound as non-root user?
On Monday 02 April 2001 17:06, you wrote: > At 09:41 AM 4/2/01 -0700, Stephen Lawrence Jr. wrote: > >The proper solution to this problem is to add your USERNAME to the AUDIO > >group. Don't change perms. I'm surprised no one has mentioned the permissions on the audio devices themselves. What, for instance, are the permissions on /dev/dsp? If it's set to (for example) -rw-- root audio then no wonder you can't use the device as a non-root user. You could circumvent the issue and just chmod 666 your audio device files (/dev/audio, /dev/sequencer, /dev/dsp etc.) if you don't expect someone telnetting in and sending stuff out your sound card in the middle of the night and waking you up :). It probably is more sensible to add yourself to the audio group and make the sound device files owned by that group. But you said it didn't work for you. But, what were the permissions set to? If you didn't set them to 640 (i.e., -rw-rw--' then you wouldn't have been able to access them even if you did change the group info. -- David E. Fox Thanks for letting me [EMAIL PROTECTED]change magnetic patterns [EMAIL PROTECTED] on your hard disk. ---
Re: [expert] problem running sound as non-root user?
At 09:41 AM 4/2/01 -0700, Stephen Lawrence Jr. wrote: The proper solution to this problem is to add your USERNAME to the AUDIO group. Don't change perms. didn't help :(
RE: [expert] problem running sound as non-root user?
Adding the user to the audio group did not work for me with 8b2. Since this is just my home machine, it didn't bother me to change perms to get sound working. Brian -Original Message-From: Stephen Lawrence Jr. [mailto:[EMAIL PROTECTED]]Sent: Monday, April 02, 2001 12:41 PMTo: [EMAIL PROTECTED]Subject: Re: [expert] problem running sound as non-root user?Dan Swartzendruber wrote: At 09:34 AM 4/2/2001 -0400, Klar Brian D Contr MSG SICN wrote: >For mpg123 I made mine 777 since it is only an >audio player I don't understand. Why are the permissions on the executable important? I can run the program, it just doesn't have access to the audio device (it seems). Unless it's supposed to be SUID or something. >Brian > >-Original Message- >From: Dan Swartzendruber [mailto:[EMAIL PROTECTED]] >Sent: Monday, April 02, 2001 9:18 AM >To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' >Subject: RE: [expert] problem running sound as non-root user? > > >At 08:50 AM 4/2/01 -0400, Klar Brian D Contr MSG SICN wrote: > >For my SB Live, and Mdk 8.0b2 I had to change the > >perms on mpg123, and for kde sounds enter play > >in the use external player field in kde's > >control center. Xmms is using OSS driver entry. >change the perms to what?The proper solution to this problem is to add your USERNAME to the AUDIO group. Don't change perms. -- Stephen Lawrence Jr. - Programmer [EMAIL PROTECTED] California Animal Health & Food Safety Laboratory System, UC Davis (530)-752-4614
Re: [expert] problem running sound as non-root user?
At 09:41 AM 4/2/2001 -0700, Stephen Lawrence Jr. wrote: >The proper solution to this problem is to add your USERNAME to the AUDIO >group. Don't change perms. ah, i'll give it a try, thanks. dunno why it doesn't work some installs and not others. oh well...
Re: [expert] problem running sound as non-root user?
Dan Swartzendruber wrote: At 09:34 AM 4/2/2001 -0400, Klar Brian D Contr MSG SICN wrote: >For mpg123 I made mine 777 since it is only an >audio player I don't understand. Why are the permissions on the executable important? I can run the program, it just doesn't have access to the audio device (it seems). Unless it's supposed to be SUID or something. >Brian > >-Original Message- >From: Dan Swartzendruber [mailto:[EMAIL PROTECTED]] >Sent: Monday, April 02, 2001 9:18 AM >To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' >Subject: RE: [expert] problem running sound as non-root user? > > >At 08:50 AM 4/2/01 -0400, Klar Brian D Contr MSG SICN wrote: > >For my SB Live, and Mdk 8.0b2 I had to change the > >perms on mpg123, and for kde sounds enter play > >in the use external player field in kde's > >control center. Xmms is using OSS driver entry. >change the perms to what? The proper solution to this problem is to add your USERNAME to the AUDIO group. Don't change perms. -- Stephen Lawrence Jr. - Programmer [EMAIL PROTECTED] California Animal Health & Food Safety Laboratory System, UC Davis (530)-752-4614
RE: [expert] problem running sound as non-root user?
At 09:34 AM 4/2/2001 -0400, Klar Brian D Contr MSG SICN wrote: >For mpg123 I made mine 777 since it is only an >audio player I don't understand. Why are the permissions on the executable important? I can run the program, it just doesn't have access to the audio device (it seems). Unless it's supposed to be SUID or something. >Brian > >-Original Message- >From: Dan Swartzendruber [mailto:[EMAIL PROTECTED]] >Sent: Monday, April 02, 2001 9:18 AM >To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' >Subject: RE: [expert] problem running sound as non-root user? > > >At 08:50 AM 4/2/01 -0400, Klar Brian D Contr MSG SICN wrote: > >For my SB Live, and Mdk 8.0b2 I had to change the > >perms on mpg123, and for kde sounds enter play > >in the use external player field in kde's > >control center. Xmms is using OSS driver entry. > >change the perms to what?
RE: [expert] problem running sound as non-root user?
For mpg123 I made mine 777 since it is only an audio player Brian -Original Message- From: Dan Swartzendruber [mailto:[EMAIL PROTECTED]] Sent: Monday, April 02, 2001 9:18 AM To: [EMAIL PROTECTED]; '[EMAIL PROTECTED]' Subject: RE: [expert] problem running sound as non-root user? At 08:50 AM 4/2/01 -0400, Klar Brian D Contr MSG SICN wrote: >For my SB Live, and Mdk 8.0b2 I had to change the >perms on mpg123, and for kde sounds enter play >in the use external player field in kde's >control center. Xmms is using OSS driver entry. change the perms to what?
RE: [expert] problem running sound as non-root user?
At 08:50 AM 4/2/01 -0400, Klar Brian D Contr MSG SICN wrote: >For my SB Live, and Mdk 8.0b2 I had to change the >perms on mpg123, and for kde sounds enter play >in the use external player field in kde's >control center. Xmms is using OSS driver entry. change the perms to what?
RE: [expert] problem running sound as non-root user?
For my SB Live, and Mdk 8.0b2 I had to change the perms on mpg123, and for kde sounds enter play in the use external player field in kde's control center. Xmms is using OSS driver entry. Brian -Original Message- From: Chris Spackman [mailto:[EMAIL PROTECTED]] Sent: Sunday, April 01, 2001 7:23 PM To: [EMAIL PROTECTED] Subject: Re: [expert] problem running sound as non-root user? On Sun, Apr 01, 2001 at 06:56:54PM -0400, Dan Swartzendruber wrote: > > this is driving me nuts. for reasons not relevant here, i have done > a reinstall of 7.2 4 times in the last 24 hours. some of the time, > as a non-root user, i can play mp3's. the rest of the time (using > the mpg123 program), i get a "permission denied" error. not aware > of having done anything sound-related during or after the install. Just a thought, but have you tried any other programs for sound? Like play or xmms, etc? I only ask because I had some problems with mpg123 when i first installed 7.2. Sound was working fine, it was mpg123 that was having problems. -- Chris and Yoshiko Spackman www.openhistory.org [EMAIL PROTECTED] (English) "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner
Re: [expert] problem running sound as non-root user?
Dan Swartzendruber wrote: > At 08:22 AM 4/2/01 +0900, Chris Spackman wrote: > >On Sun, Apr 01, 2001 at 06:56:54PM -0400, Dan Swartzendruber wrote: > > > > > > this is driving me nuts. for reasons not relevant here, i have done > > > a reinstall of 7.2 4 times in the last 24 hours. some of the time, > > > as a non-root user, i can play mp3's. the rest of the time (using > > > the mpg123 program), i get a "permission denied" error. not aware > > > of having done anything sound-related during or after the install. > > > >Just a thought, but have you tried any other programs for sound? Like play > >or xmms, etc? I only ask because I had some problems with mpg123 when i > >first installed 7.2. Sound was working fine, it was mpg123 that was having > >problems. > > no joy. mpegplay also fails: > > "No available audio device" Have you checked and made sure that as user you are part of the respective group, audio? What security level have you set your system? If set to 5 or 4 try a lower setting, say 2. -- Sword'sEdge VoiceMail/Fax: (858) 860-6406 x1587
Re: [expert] problem running sound as non-root user?
At 08:22 AM 4/2/01 +0900, Chris Spackman wrote: >On Sun, Apr 01, 2001 at 06:56:54PM -0400, Dan Swartzendruber wrote: > > > > this is driving me nuts. for reasons not relevant here, i have done > > a reinstall of 7.2 4 times in the last 24 hours. some of the time, > > as a non-root user, i can play mp3's. the rest of the time (using > > the mpg123 program), i get a "permission denied" error. not aware > > of having done anything sound-related during or after the install. > >Just a thought, but have you tried any other programs for sound? Like play >or xmms, etc? I only ask because I had some problems with mpg123 when i >first installed 7.2. Sound was working fine, it was mpg123 that was having >problems. no joy. mpegplay also fails: "No available audio device"
Re: [expert] problem running sound as non-root user?
On Mon, 2 Apr 2001, Chris Spackman wrote: > On Sun, Apr 01, 2001 at 06:56:54PM -0400, Dan Swartzendruber wrote: > > > > this is driving me nuts. for reasons not relevant here, i have done > > a reinstall of 7.2 4 times in the last 24 hours. some of the time, > > as a non-root user, i can play mp3's. the rest of the time (using > > the mpg123 program), i get a "permission denied" error. not aware > > of having done anything sound-related during or after the install. > > Just a thought, but have you tried any other programs for sound? Like play > or xmms, etc? I only ask because I had some problems with mpg123 when i > first installed 7.2. Sound was working fine, it was mpg123 that was having > problems. hmmm, no. i didn't happen to have any other mpeg players loaded at the time (i don't think). i'll see, thanks...
Re: [expert] problem running sound as non-root user?
On Sun, Apr 01, 2001 at 06:56:54PM -0400, Dan Swartzendruber wrote: > > this is driving me nuts. for reasons not relevant here, i have done > a reinstall of 7.2 4 times in the last 24 hours. some of the time, > as a non-root user, i can play mp3's. the rest of the time (using > the mpg123 program), i get a "permission denied" error. not aware > of having done anything sound-related during or after the install. Just a thought, but have you tried any other programs for sound? Like play or xmms, etc? I only ask because I had some problems with mpg123 when i first installed 7.2. Sound was working fine, it was mpg123 that was having problems. -- Chris and Yoshiko Spackman www.openhistory.org [EMAIL PROTECTED] (English) "I will not be pushed, filed, stamped, indexed, briefed, debriefed, or numbered. My life is my own." -The Prisoner PGP signature