Lintian tag: maintainer-script-lacks-home-in-adduser

Type: error

Description (from lintian-explain-tags)

The maintainer script apparently runs 'adduser --system' but hardcodes a
path under '/home' for the '--home' option or does not use the '--home'
option.

The FHS says: /home is a fairly standard concept, but it is clearly a
site-specific filesystem. The setup will differ from host to host.
Therefore, no program should rely on this location.

Note that passing --no-create-home alone does not solve the issue because
home field of passwd file point to a non existing /home subdirectory.
Please use adduser --no-create-home --home /nonexistent instead.

Please refer to /home : User home directories (optional) (Section 3.8) in
the Filesystem Hierarchy Standard and the adduser(8) manual page for
details.

Visibility: error
Show-Always: no
Check: scripts
Renamed from: maintainer-script-should-not-use-adduser-system-without-home

Affected packages

source version binary tag type tag information count
cereal 0.24-1.2 cereal/0.24-1.2 error maintainer-script-lacks-home-in-adduser "adduser --quiet --system --no-create-home --home '/var/lib/cereal' --shell '/bin/false' --gecos 'cereal logfile owner,,,' cereal" [postinst:11] 1