Notice! This document is currently in Archived status.
The content of this document may be incorrect or outdated.

Print this article Edit this article

How To View Other Users' Quotas

by Curtis Smith

It has always been the desire of users on ECN UNIX computers to see other users' disk-space quotas. This document will describe the step by step process of looking up the current disk quota of another user.

Instructions

In order for the quota lookup to work, you must be logged on to the same UNIX server that stores the user's files.

First, find the home directory for the user. Use the finger command:

atom$ finger richmnixon
Login name: rich1981 In real life: Richard M. Nixon
Office: BRNG 1206 Home phone:
Directory: /home/atom/d/richmnixon Shell: /bin/csh
Affiliations: che Uid: 42
Expires: October 1, 2005 Login group: other (1)
Department: Chemical Engineering Classification: Former President
Account type: president Authorized by: stacey
atom$

Now lookup the user's home directory using the df command:

atom$ df /home/atom/d/richmnixon
/export/home/d (/dev/dsk/c0t3d0s2 ): 2683542 blocks 987352 files
atom$

This will give the actual filesystem path that holds the user's directory. In this case, the actual filesystem path of /home/atom/d/richmnixon is /export/home/d.

Finally, request the quotas for the filesystem and look for the user's name in the list:

atom$ /usr/sbin/repquota -v /export/home/d | grep '^richmnixon '
richmnixon -- 115221 199000 205000 6039 0 0
atom$

The meaning of each field is the following:

Field Value
Current space quota115,221 KB
Soft limit199,000 KB
Hard limit205,000 KB
Current files quota6,039 files
Soft limit0 files
Hard limit0 files

A zero (0) in the field for the limit means an unlimited quota.

Should the command /usr/sbin/quota return no results, it might mean that the user has no quota set.

Last Modified: Dec 19, 2016 11:12 am US/Eastern
Created: Aug 9, 2006 12:59 pm GMT-4 by admin
JumpURL: