2005-09-24 This is a protocol of what I did to create a custom pam package (with rlimits patch) for Debian unstable. Burkhard Ritter, 24.09.2005. apt-get source pam apt-get fakeroot apt-get build-dep pam Get the patches from: http://alsa.opensrc.org/pam_limits.patch http://alsa.opensrc.org/pam_limits.skel.patch Edit them to change the version from 0.77 to 0.76 (which Debian currently uses). Apply them. Modify the limits.skel file so that only the group audio has realtime privileges and not all users (I saw this first in some file from http://fsb.gotdns.org/~froh/files/pam-rlimits_debian/). Add some lines to the changelog. dpkg-buildpackage -rfakeroot I believe that's all. Seems rather short now, but it took some hours. 2005-10-09 Debian unstable now uses pam-0.79. Thus I created a custom package again, with the RT rlimits patch applied.