On Mon, Nov 27, 2023 at 09:57:22AM +0100, Sylvain Beucler wrote:
> On 26/11/2023 11:32, Marc Haber wrote:
> > On Sun, Nov 26, 2023 at 10:00:27AM +0100, Sylvain Beucler wrote:
> > > I use QUOTAUSER on a multi-user remote system, for a non-profit, where
> > > people tend to forget about disk space, to ensure any new 'adduser' sets a
> > > reasonable quota.
> > > 
> > > If there's an alternative please let me know.
> > 
> > The alternative would be to use edquota -p (quota) (username) after
> > creating the user. At least that's what adduser does when the quotauser
> > configuration option is set.
> 
> I use QUOTAUSER so I can be sure that when me or a co-admin creates a user,
> the quota is set, and there's no way to forget about it (iow I know how to
> do it manually).  By alternative, I mean a way to ensure that the quota is
> always set for new users :)

How about having a wrapper around adduser? Or a cronjob that iterates
through the users and installs the quota even for users that had it
removed?

This could also be an application for #36019, hooks.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

Reply via email to