Date: Thu, 31 Jan 2002 08:21:45 -0800 From: Danny Howard <dannyman@toldme.com> To: jacks@sage-american.com Cc: Mark Drayton <mark.drayton@izrsolutions.com>, Lance Bland <lbland@vvi.com>, adrian kok <adriankok2000@yahoo.com.hk>, questions@FreeBSD.ORG Subject: Re: number of users Message-ID: <20020131082145.C23029@pianosa.catch22.org> In-Reply-To: <3.0.5.32.20020131101046.018e6ae0@mail.sage-american.com>; from jacks@sage-american.com on Thu, Jan 31, 2002 at 10:10:46AM -0600 References: <3.0.5.32.20020125133613.01831ca0@mail.sage-american.com> <0C288440-11C8-11D6-A67C-0030659A531A@vvi.com> <20020125190013.23955.qmail@web21210.mail.yahoo.com> <0C288440-11C8-11D6-A67C-0030659A531A@vvi.com> <20020125192444.A3916@drex.staff.izr.com> <3.0.5.32.20020125133613.01831ca0@mail.sage-american.com> <20020130230643.B30649@pianosa.catch22.org> <3.0.5.32.20020131073450.018e6ae0@mail.sage-american.com> <20020131075901.A23029@pianosa.catch22.org> <3.0.5.32.20020131101046.018e6ae0@mail.sage-american.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jan 31, 2002 at 10:10:46AM -0600, jacks@sage-american.com wrote: > Those are NOT answers but lazy "man" references. This is what I meant: > > UserName FullName FTP Home Directory > Quota E-mail Quota > ---------------- ------------------------- ------------------------------ > ----- ------------ > root System Administrator (No FTP Privileges) > none none > admin Administrator / > none unlimited [...SNIP...] Oh, that's not a query so much as a lazy SysAdmin question. You asked "How would you ..." I stand by my answer: I don't know how to access quota information on FreeBSD, so I would Read The Fine Man page. :) I think you'd find getpwent() of use. This is a C function also accessible by Perl. The lazier way would be to awk fields out of /etc/passwd. As pointed out, I don't know how to slurp up quota data. There's probably a tool out there already that prints much of the data you want, that could be massaged appropriately. -danny -- http://dannyman.toldme.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020131082145.C23029>