On Mon, 18 Feb 2002, Brian Masney wrote: > Here is a patch to pam_mkhomedir.c from PAM 0.72 that adds quota support. > > Brian > > --- Linux-PAM-0.72/modules/pam_mkhomedir/pam_mkhomedir.c.old Wed Feb 13 11:39:45 2002 > +++ Linux-PAM-0.72/modules/pam_mkhomedir/pam_mkhomedir.c Wed Feb 13 12:55:17 2002 > @@ -25,6 +25,18 @@ > [...] While the principle of adding quotas via PAM may be desirable, could I urge caution and care about how it is implemented? The programming interface to quotas to highly variant across different versions of UN*X. I understand it even differs across versions and releases of some Linux flavours. A useful starting point for attempting such an implementation might be the "quotas.c" file from the "samba" product. This runs on a wide variety of UN*X platforms, and even the briefest glimpse at their code shows the portability problems that need to be addressed. So yes, by all means add quota support. But we need to think a little more about exactly how and where. A related issue: should this support be in "pam_mkhomedir.c" itself? Or perhaps rather in a separate PAM module? One advantage of separating it is this portability aspect: "pam_mkhomedir.c" is clean and portable, whereas anything programming quotas will, of necessity, have to be considerably less clean to achieve portability. Hope that helps your considerations. -- : David Lee I.T. Service : : Systems Programmer Computer Centre : : University of Durham : : http://www.dur.ac.uk/t.d.lee/ South Road : : Durham : : Phone: +44 191 374 2882 U.K. :