xfs
[Top] [All Lists]

Re: default quota limits in linux (via quotactl())

To: "Stefan (metze) Metzmacher" <metze@xxxxxxxxxxx>
Subject: Re: default quota limits in linux (via quotactl())
From: Jan Hudec <bulb@xxxxxx>
Date: Tue, 28 Jan 2003 10:32:50 +0100
Cc: "Stephen C. Tweedie" <sct@xxxxxxxxxx>, viro@xxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, akpm@xxxxxxxxxx, Andreas Dilger <adilger@xxxxxxxxxxxxx>, ext2-devel@xxxxxxxxxxxxxxxxxxxxx, jfs-discussion@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx, Alexander Bokovoy <a.bokovoy@xxxxxxxxxxxxxxxxx>
In-reply-to: <5.2.0.9.2.20030128074810.0218c4f8@xxxxxxxxxxxxxxxxx>
Mail-followup-to: Jan Hudec <bulb@xxxxxx>, "Stefan (metze) Metzmacher" <metze@xxxxxxxxxxx>, "Stephen C. Tweedie" <sct@xxxxxxxxxx>, viro@xxxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxx, akpm@xxxxxxxxxx, Andreas Dilger <adilger@xxxxxxxxxxxxx>, ext2-devel@xxxxxxxxxxxxxxxxxxxxx, jfs-discussion@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx, linux-xfs@xxxxxxxxxxx, Alexander Bokovoy <a.bokovoy@xxxxxxxxxxxxxxxxx>
References: <5.2.0.9.2.20030127150905.0217e170@xxxxxxxxxxxxxx> <5.2.0.9.2.20030127150905.0217e170@xxxxxxxxxxxxxx> <5.2.0.9.2.20030128074810.0218c4f8@xxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4i
On Tue, Jan 28, 2003 at 07:54:08AM +0100, Stefan (metze) Metzmacher wrote:
> At 16:22 27.01.2003 +0000, Stephen C. Tweedie wrote:
> >That's a user-space problem.  A new user typically won't have a writable
> >area within /home until the sysadmin has created the new home directory,
> >so it's really up to the sysadmin to make sure that the quota for the
> >home filesystem has been set at the same time.
> 
> What is if we have 500.000 users and 300.000 group in LDAP
> 
> and set up a new server, witch is intended to store data from ~1000 users 
> 500 group
> 
> should the admin really run setquota ... for each of the 500.000 users and 
> 300.000 group
> 
> that's are 800.000 quota entries in the filesystem and only 1500 are really 
> used
> 
> ans this entries cost disk space too, so if we have two default entries 
> (one for users and one for groups) then only every user witch really uses 
> this filesystem would get a quota entry when he starts to own diskspace on 
> this filesystem and we would have only 1502 quota entries stored on disk!

It still isn't a kernel problem, but a user-space one. You need to get
or write a PAM module, that will check wether quotas are set for user
being authenticated and if not, set them. You could even store the
qutoas in the LDAP (or some other) database and check them when a user
logs in...

-------------------------------------------------------------------------------
                                                 Jan 'Bulb' Hudec <bulb@xxxxxx>


<Prev in Thread] Current Thread [Next in Thread>