{S} quota and transfer count

From: Becki Kain <beckers_at_josephus.furph.com>
Date: Sun, 18 Apr 1999 19:20:14 -0400 (EDT)

Original question:

Is there a way to count how much disk space one user (but not all users)
is using on a 4.0d system, including web, mail, and ftp traffic? and does
anyone have a good way to measure how much transfer per day someone has?

Thanks to Roy Smith <roy_at_endeavor.med.nyu.edu> and Greg Sorensen
<Greg.Sorensen_at_digital.com> for their responses:

find / -user roy -ls

will print a list of all my files, sizes, etc. Some sort of
awk/perl/python/etc script should then be able to extract the file size
information from that and summarize it. Keep in mind that not every file
owned by me is a "file", some are directories, some are ttys, etc. Also
keep in mind that much of "my" data is in files which are not owned by me
-- for example, our mail system keeps *all* mailbox files owned by the
mail
system (user cyrus), and these would be missed by a scan such as described
above.

Quotas are the easy answer to the first question. You don't
even have to turn them on or enforce them under advfs. Just
add the quota options to the mounts in fstab, and poof - you
can get the information on a per file system basis. You can
write a couple of scripts to automate it on a daily basis.



Becki Kain
beckers_at_furph.com
--
  furph, Inc.	WWW/Unix/Windows Solutions	734-513-7763 (voice)
info_at_furph.com	   http://www.furph.com		734-513-7759 (FAX)
Received on Sun Apr 18 1999 - 23:22:47 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:39 NZDT