Quota without using a template user?

Quota without using a template user?

Post by John L Luigi Giasi, AA1 » Fri, 17 Nov 1995 04:00:00



When creating accounts, I have always used a "template user" (proto_user)
with the appropriate quota on that users home partition and a quota of 0
on all other partitions. This would allow me to use (for new_user_home on
/export/home4):

      edquota -p proto_user_home4 newuser

This forces me to have a proto_user for each partition. I have been
thinking about writing something to:

                     parse fstab/mnttab
                     determining the newuser home partition
                     momentarily twiddling $EDITOR (to sed?)
                     clearing any values present
                     writing in 0 on all but the home partition
                     quoting the home at the "right value"

If anybody has suggestions/caveats/scripts please drop me a line and I
will summarize to the net in a week (or so, due to US Thankgiving)

-JLG
--
John L. Luigi Giasi, AA1AA
Sysadmin - ummed.edu

 
 
 

Quota without using a template user?

Post by Davin Mil » Sat, 18 Nov 1995 04:00:00



?When creating accounts, I have always used a "template user" (proto_user)
?with the appropriate quota on that users home partition and a quota of 0
?on all other partitions. This would allow me to use (for new_user_home on
?/export/home4):
?
?      edquota -p proto_user_home4 newuser
?
?This forces me to have a proto_user for each partition. I have been
?thinking about writing something to:
?
?                     parse fstab/mnttab
?                     determining the newuser home partition
?                     momentarily twiddling $EDITOR (to sed?)
?                     clearing any values present
?                     writing in 0 on all but the home partition
?                     quoting the home at the "right value"
?
?If anybody has suggestions/caveats/scripts please drop me a line and I
?will summarize to the net in a week (or so, due to US Thankgiving)

I have a setquota C program which sets a given user's quota to values
specified on teh command line.  It's not the world's most elegant code, but
it works.

It's available at ftp://ftp.cs.buffalo.edu/users/milun/Solaris/setquota.c

Davin.
-------------------------------------------------------------------------------

               Fax:       (716) 645-3464
               WWW:       http://www.cs.buffalo.edu/~milun/

 
 
 

1. Quotas : Format of quota.users & quota.groups ?

Hi,

I am running Linux-FT with kernel 1.2.13 and quota patches. I would like
to enable quotas in order to control memory usage by apps (I'm trying to
debug an app that keeps grabbing all system memory, preventing me from
typing kill).

In order to enable quotas, files called quota.users and quota.groups
need to be present in the root directory. The 'edquota'
program is supposed to be used to set these up, but it simply invokes vi,
expecting the user to know the file format. The man pages say that
the file format is 'inscrutable', but don't actually describe it anywhere!

Anyone know the correct format ?

Thanks in advance,

Steve

-----------------------------------------------------------------------------
| Steve Mottram                                                             |
|                                                                           |
| University Department of Anaesthesia  |    Internal Phone : LRI 5694      |
| Leicester Royal Infirmary             |    Phone  :  +44 (0)116 258 5291  |
| Leicester LE1 5WW                     |    Fax    :  +44 (0)116 285 4487  |

|---------------------------------------------------------------------------|
| Witty bit deleted due to budget cuts.                                     |
|---------------------------------------------------------------------------|

2. emulating linux under linux?

3. got this strange error: "Warning (Anachronism): Using aTester as a template without a declaration."

4. libXpm.so.4 binaries - where ?

5. RH71: Confused Quotas - quotaon looking for quota.user, edquota looking for aquota.user

6. .bash_login

7. using template template parameters

8. Looking for print screen capability on HP Laserjet

9. /usr/sbin/quota SLOW without quotas

10. Users without quota.

11. user quotas and printer usage quotas on NT domain

12. quota: format of quota.user

13. quota: set quota by group instead of user?