RE: workman and sound
On Mon, 8 Feb 1999, Richard Hall wrote: On Mon, 8 Feb 1999, Shaleh wrote: On 08-Feb-99 Richard Hall wrote: I went ahead and did 'chmod 666 /dev/audio' and that made workman work. I really hate doing that, though. It seems like there should be a way to make /dev/audio available to me and various processes I start like workman without making it world writable and without having to do group calisthenics. The proper thing to do is to add any user that wants sound to the audio group. You stated sound worked, so I assumed it was not a permission problem. It has to be said that I can only play CDs as root, despite chgrping /dev/cdrom to audio, and adding myself to /dev/cdrom Matthew -- Elen sila lumenn' omentielvo Steward of the Cambridge Tolkien Society Selwyn College Computer Support http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/ Debian GNU/Hurd - love at first byte
RE: workman and sound
On Mon, 8 Feb 1999, Shaleh wrote: Here is my /dev/audio prompt$ ll /dev/audio crw-rw 1 root audio 14, 4 Jul 20 1998 /dev/audio run 'groups' as the user. If audio appears then the above should work, it does on every one of my machines. If audio is not listed as one of your groups, as root run 'vigr' and add your user name to the end of the audio line. The logout and log back in so the group change takes effect. Also note, you need read access to /dev/hdc or whatever your cd drive is. Matthew -- Elen sila lumenn' omentielvo Steward of the Cambridge Tolkien Society Selwyn College Computer Support http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/ Debian GNU/Hurd - love at first byte
RE: workman and sound
On Tue, 9 Feb 1999, M.C. Vernon wrote: It has to be said that I can only play CDs as root, despite chgrping /dev/cdrom to audio, and adding myself to /dev/cdrom OK, so all I had to do was make /dev/hdc world-readable sigh Matthew -- Elen sila lumenn' omentielvo Steward of the Cambridge Tolkien Society Selwyn College Computer Support http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/ Debian GNU/Hurd - love at first byte
Re: workman and sound
On Tue, Feb 09, 1999 at 01:16 +, M.C. Vernon wrote: On Mon, 8 Feb 1999, Richard Hall wrote: On Mon, 8 Feb 1999, Shaleh wrote: On 08-Feb-99 Richard Hall wrote: I went ahead and did 'chmod 666 /dev/audio' and that made workman work. I really hate doing that, though. It seems like there should be a way to make /dev/audio available to me and various processes I start like workman without making it world writable and without having to do group calisthenics. The proper thing to do is to add any user that wants sound to the audio group. You stated sound worked, so I assumed it was not a permission problem. It has to be said that I can only play CDs as root, despite chgrping /dev/cdrom to audio, and adding myself to /dev/cdrom Correct me if I'm wrong, but if you are using shadow passwords just adding a user to /etc/group manually is not enough, you have to use adduser or some other method to set it in /etc/group-. Cheers Dave -- Dave Swegen | Debian 2.0 on Linux i386 2.2.1 [EMAIL PROTECTED] | PGP key available on request [EMAIL PROTECTED] | Linux: The Choice of a GNU Generation --
Re: workman and sound
On Tue, 9 Feb 1999, Dave Swegen wrote: [snip] It has to be said that I can only play CDs as root, despite chgrping /dev/cdrom to audio, and adding myself to /dev/cdrom Correct me if I'm wrong, but if you are using shadow passwords just adding a user to /etc/group manually is not enough, you have to use adduser or some other method to set it in /etc/group-. I'm not an expert by any means, but I think you can just add users to groups in /etc/group (though I don't know if you can add whole groups like that). I have done that quite often and it seems to work (I'm using shadow). -Dan
RE: workman and sound
On Mon, 8 Feb 1999, Robert V. MacQuarrie wrote: On Tue, 9 Feb 1999, M.C. Vernon wrote: On Tue, 9 Feb 1999, M.C. Vernon wrote: It has to be said that I can only play CDs as root, despite chgrping /dev/cdrom to audio, and adding myself to /dev/cdrom OK, so all I had to do was make /dev/hdc world-readable sigh Matthew Again .. you do not have to change ANY permissions. Type ls -l filename.. My cdrom is on /dev/hdh so 'ls -l /dev/hdh' shows brwxrwx--- 1 root disk 34, 64 Apr 26 1998 /dev/hdh Do the samething you did with your /dev/audio groups but add yourself to the group 'disk' like so 'adduser user disk' This assumes I want to add myself to group disk, which I do not. OTOH, giving everyone read permissions to my CDROM is unlikely to cause problems ;) Matthew -- Elen sila lumenn' omentielvo Steward of the Cambridge Tolkien Society Selwyn College Computer Support http://www.cam.ac.uk/CambUniv/Societies/tolkien/ http://pick.sel.cam.ac.uk/ Debian GNU/Hurd - love at first byte
RE: workman and sound
In the interest of trying to understand how ownership and permissions work, let me ask you a question. As root, I ran 'adduser me cdrom' since cdrom is the group that owns my CD drive. This should allow me to remove the harmless world rw permission from /dev/cdrom. Looking in /etc/group, I can see that I am in group cdrom, but when I run 'groups' as me, it only shows me as being in group audio and my own group, but not cdrom. Do I need to log out and log back in to get the change to take? Is there a command that will update my shell without a logout? I really don't want to log out, and I expect more from Linux than that anyway. Thanks, Richard Hall Network Services University of Tennessee
Re: workman and sound
On Tue, Feb 09, 1999 at 11:29:31AM -0500, Richard Hall wrote: Do I need to log out and log back in to get the change to take? Somehow the setgroups call must be executed and only the superuser is allowed to do this, so this needs to be done by a program running as root, i.e. login or a suid program. You could avoid to logout by exec su - your username and type in your password again. This will only affect this shell however. If you use X and xdm, only processes started from this shell will have the group list updated. Is there a command that will update my shell without a logout? What is the problem with logging out? Connected over a modem? Then the above will work. Nils -- Plug-and-Play is really nice, unfortunately it only works 50% of the time. To be specific the Plug almost always works.--unknown source pgpG6SoaNXufa.pgp Description: PGP signature
workman and sound
I just installed workman so that I can listen to tunes, but it ain't working. Sound works, ie, I can do 'cat file.au /dev/audio' and hear sound. Also, workman thinks that it is playing the CD. I can watch the time elapse, and it knows how many tracks are on the disk. The only problem is that nothing is coming out of the speakers. I can hear music by plugging headphones into the CD drive. So which audio device is workman using? I figure that I just need to change permissions somewhere, but I'm not sure where. Thanks, Richard Hall Network Services University of Tennessee
RE: workman and sound
On 08-Feb-99 Richard Hall wrote: I just installed workman so that I can listen to tunes, but it ain't working. Sound works, ie, I can do 'cat file.au /dev/audio' and hear sound. Also, workman thinks that it is playing the CD. I can watch the time elapse, and it knows how many tracks are on the disk. The only problem is that nothing is coming out of the speakers. I can hear music by plugging headphones into the CD drive. So which audio device is workman using? I figure that I just need to change permissions somewhere, but I'm not sure where. Or to ask a dumb question -- does CD audio work in some other app or OS? For the Cd to send sound to the computer, a cable running from the cdrom drive to the sound card must exist and be connected to the right plug on the sound card.
RE: workman and sound
I went ahead and did 'chmod 666 /dev/audio' and that made workman work. I really hate doing that, though. It seems like there should be a way to make /dev/audio available to me and various processes I start like workman without making it world writable and without having to do group calisthenics. Richard Hall Network Services University of Tennessee
RE: workman and sound
On 08-Feb-99 Richard Hall wrote: I went ahead and did 'chmod 666 /dev/audio' and that made workman work. I really hate doing that, though. It seems like there should be a way to make /dev/audio available to me and various processes I start like workman without making it world writable and without having to do group calisthenics. The proper thing to do is to add any user that wants sound to the audio group. You stated sound worked, so I assumed it was not a permission problem. Debian uses groups like audio because this means that many apps that need to be setuid do not or only need setgrid.
RE: workman and sound
On Mon, 8 Feb 1999, Shaleh wrote: On 08-Feb-99 Richard Hall wrote: I went ahead and did 'chmod 666 /dev/audio' and that made workman work. I really hate doing that, though. It seems like there should be a way to make /dev/audio available to me and various processes I start like workman without making it world writable and without having to do group calisthenics. The proper thing to do is to add any user that wants sound to the audio group. You stated sound worked, so I assumed it was not a permission problem. Debian uses groups like audio because this means that many apps that need to be setuid do not or only need setgrid. So how come this didn't work for me? When I first got sound working, I added myself to group audio, but I had to explicitly change groups any time I wanted to use sound. Also, I tried to figure out how to get Netscape to run as group audio by editing the /usr/bin/X11/netscape script, but never succeeded, not surprising given my inexperience with scripts. I ended up making /dev/audio part of my personal group, and now I've completely bastardized it with chmod 666. So you're saying that workman runs under group audio, and if /dev/audio is in that group and I chmod it to 660, I'll get music. Okay. How can I convince Netscape to run as group audio and not under my user id? Richard Hall Network Services University of Tennessee
RE: workman and sound
Here is my /dev/audio prompt$ ll /dev/audio crw-rw 1 root audio 14, 4 Jul 20 1998 /dev/audio run 'groups' as the user. If audio appears then the above should work, it does on every one of my machines. If audio is not listed as one of your groups, as root run 'vigr' and add your user name to the end of the audio line. The logout and log back in so the group change takes effect.
RE: workman and sound
I set /dev/audio back to the way it originally was, (660, group audio). I am already in group audio. It seems to be working. I guess I didn't do the log out/log back in step before. I'm not sure whether Netscape can use sound or not. Plug-ins which use sound are working, but when I try to open a .au file from my home directory or from the web, Netscape crashes. Anyway, thanks for the help! Richard Hall Network Services University of Tennessee