On Wed, 18 Nov 1998 19:44:06 -0700, Chip Grandits wrote: >[EMAIL PROTECTED] wrote >> <many frantic notes on about sound not working on java linux...> >[EMAIL PROTECTED] (and others) were very helpful Much Thanks. > >I would like to post this quick summary of what I have learned: [...] >The problem was related to my attempt to setuid to appletviewer >This is really a symbolic link to .java_wrapper >However .java_wrapper is a shell script, and setuid does NOT work on scripts. >(I here there are exceptions for perl?) > >For now I've taken the quick and dirty 'Number of the Beast' solution >chmod 666 /dev/audio If you really are worried about audio device access, you can make a group and make /dev/audio (and what it links to) 660 and part of that group. Then you make all of the user accounts that can play audio part of that group and you have it. >I assume the actual files which should be setuid are tucked away in (for 1.1.6 >at least) >$JAVA-HOME/jdk1.1.6/bin/$ARCH/green_threads >(for me $JAVA-HOME is /usr/local and $ARCH is i586) Ahh, but suid does not magically make the program run as such unless it also makes the calls to do so. Plus, this would be a rather foolish thing to do since it would mean that all Java programs now are running as root just so that they can have access to audio. (Burn down the barn because you don't like the mouse in it...) Using groups is a much better way (and audio really is not that critical of a system resource that one would worry about something getting access to it - having all Java programs running as root would be...) Michael Sinz -- Director of Research & Development, NextBus Inc. mailto:[EMAIL PROTECTED] --------- http://www.nextbus.com My place on the web ---> http://www.users.fast.net/~michael_sinz