On Sat, 23 Mar 2013 08:43:20 -0700, Len Ovens wrote > Which would not work here... but, maybe try changing > /etc/security/limits.d/audio.conf (or it's equiv) to be user specific > instead of group. Nope that whole file relies on PAM. > > There is always the ugly way: > > Have your udev module touch a file on plug in and rm it on unplug. > Run a user space loop that looks for that file and runs jack (if > needed) and connects whatever. File gone resets to look for file > coming back. But why so utterly complex? Just write a small script that will be executed by udev: #!/bin/bash # give us more realtime ulimit -r 95 # N.B.: you might want to also aquire higher memory # and nice settings ... # run command ... sudo -u your_user your_command As a test, use sudo -u your_user /bin/bash -c "id && ulimit -a" to see whether it works. HTH Ralf Mattes -- R. Mattes - Hochschule fuer Musik Freiburg rm@xxxxxxxxxxxxxxxxxx _______________________________________________ Linux-audio-user mailing list Linux-audio-user@xxxxxxxxxxxxxxxxxxxx http://lists.linuxaudio.org/listinfo/linux-audio-user