Hi,

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 :)

I might contribute some tests but probably not soon.

It would be nice if adduser would give a clear error message if
quotauser is given and edquota is not present on the system, suggesting
that the quota package be installed, and exit RET_MORE_PACKAGES,
analogous to deluser's handling of perl not being present in line 198++
(probably easier than that because the existing code has to handle a
failed use).

An autopkgtest would mainly need to check the error handling and whether
setting quotauser will actually have a result if quota is installed. I
am not sure whether this also needs to run on a quota-enabled filesystem
which might be hard to do in an autopkgtest.

Noted.

Cheers!
Sylvain

Reply via email to