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 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.

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