[comp.unix.aix] AIX PS/2 quota and getty

lehtonen@cs.Helsinki.FI (Tapio Lehtonen) (07/30/90)

AIX PS/2 seems to have disk space quotas that can be set for individual
users.  I have learned that I am supposed to create a file named quota
to the root of every disk partition, but I am baffeled by no indication
of what to write to that file.  Somehow it should indicate those users
that have a quota on that particular partition and the size of that
quota. 

Please send me an example of a quota file and perhaps even some
explanations. 

Another problem: I need to initialize my moden on tty line differently
from the default. I tried to fgrep the strings from all files, but no
luck. I am prepared to patch the code, if only I can find what file to
patch. So, in what file is the code that sends Hayes commands to the
modem? Or, better yet, perhaps there is a text file from which those
commands are read? 

If you plan to say RTFM, please be sure you can tell me which FM to R.
-- 
Tapio Lehtonen                        PHONE + 358 0 7084206
Dept. Comp. Sci., Univ. of Helsinki   TELEX 122785 TSK SF  FAX 708 4441
Teollisuuskatu 23, SF-00510 Helsinki  INTERNET lehtonen@cs.Helsinki.FI
Finland                               LEHTONEN@FINUH    HYLK::TLEHTONEN

steve@qe2.paloalto.ibm.com (Steve DeJarnett) (07/31/90)

In article <6410@hydra.Helsinki.FI> lehtonen@cs.Helsinki.FI (Tapio Lehtonen) writes:
>AIX PS/2 seems to have disk space quotas that can be set for individual
>users.  I have learned that I am supposed to create a file named quota
>to the root of every disk partition, but I am baffeled by no indication
>of what to write to that file.  Somehow it should indicate those users
>that have a quota on that particular partition and the size of that
>quota. 

	The quota file is a data file (i.e. it's not freeform text -- it's 
created by a program).  The following should get you mostly set up.  Most of 
this is from memory, so consult the man pages if it doesn't work:

	1) First you need a quota file so that quotaon won't complain.  To do
	   this, just touch the file quotas in the root directory of the 
	   filesystem you want to activate quotas in.  i.e.

		touch /u/quotas

	   Do this for every filesystem you want quotas on.

	2) Now all users will have no quotas (i.e. unlimited).  You should
	   change quotas for all users that you want to have quotas on each
	   filesystem.  Do this with edquota.  edquota will place you into vi
	   (unless your EDITOR environment variable is set, in which case it 
	   will place you into that editor).  There will be one line per 
	   filesystem that has quotas enabled:

		fs  /u blocks (soft = 0, hard = 0)  inodes (soft = 0, hard = 0)

	   You should change the soft and hard limits for both blocks and 
	   inodes. Simply change these in the editor, then save the file.  
	   After saving the file, the quota will be updated in the filesystem.

	3) Now you need to check the quotas to fill in the quotas file.  Do
	   this with quotacheck:

		quotacheck /u

	   It will print out various information about each user (basically 
	   what their current usage is).

	4) You can now see what the usage with repquota:

		repquota /u

	   This will show everyone's usage, along with their quotas.

	5) To enable quotas to be checked, type:

		quotaon /u

	6) To turn off quotas, type:

		quotaoff /u

>Tapio Lehtonen                        PHONE + 358 0 7084206

	Hope that helps.

Steve DeJarnett			Internet: ibmsupt!steve@uunet.uu.net
IBM AWD Palo Alto		UUCP:	  uunet!ibmsupt!steve
(415) 855-3510			VNET:     dejarnet at ausvmq
These opinions are my own.  I doubt IBM wants them.......

kevin@msa3b.UUCP (Kevin P. Kleinfelter) (07/31/90)

lehtonen@cs.Helsinki.FI (Tapio Lehtonen) writes:


>Another problem: I need to initialize my moden on tty line differently
>from the default. I tried to fgrep the strings from all files, but no
>luck. I am prepared to patch the code, if only I can find what file to
>patch. So, in what file is the code that sends Hayes commands to the
>modem? Or, better yet, perhaps there is a text file from which those
>commands are read? 

I suggest writing a program to configure the modem the way you want it and
then exec getty (and tell getty NOT to configure the modem). What I have done
is to manually configure the modem and then configure it to reload my values
on DTR drop. This way there is no need to reprogram the modem at each  getty
start-up.

-- 
Kevin Kleinfelter @ Dun and Bradstreet Software, Inc (404) 239-2347
{emory,gatech}!nanovx!msa3b!kevin

"Don't hold your finger on the button if the motor ain't goin' roundy-roundy."