Hi,
Le 11/07/2025 à 12:08, Marc Haber a écrit :
Source: owfs
Version: 3.2p4+dfsg1-6
Severity: normal
Hi,
the owfs uses adduser in preinst. This includes the need to support
running with old adduser, which in turn comes with the requirement of
using all that scaffolding around adduser that is there today.
Adduser in preinst is a very unusual way, as the adduser maintainer I
can come up with an idea why that would be needed. I am interesting in
hearing an explanation why you are causing yourself this kind of pain.
I do not know either.
Git tells me that the change comes from me and I did not know why I did that.
Please consider moving your adduser call to postinst. That way you can
get rid of the Pre-depends AND lose the need for all that scaffolding.
In postinst, it should be enough to just use
adduser --system --comment "Debian OWFS system account" --home /var/lib/owfs
without any scaffolding, group creation and else and you should be just
fine. Anything else is probably a bug in adduser, let mek now about your
needs. Do you NEED the home directory? Maybe you can just omit that and
get /nonexistent as home directory.
I need Debian-ow user and group as it is referenced in a systemd service files
(to run two services). Depending on the hardware, the admin may need to give
access to some devices to the user or group.
I do not need any home directory (I just check on a machine with owfs,
/var/lib/owf does not even exist)
So, my invocation should be :
adduser --system --group --comment "Debian OWFS system account" Debian-ow
Is there a way to change the home directory to /nonexistent on machines where
the account already exists?
(other that patching /etc/passwd with sed)
I plan to do the change in the git repo and to upload after the trixie release,
unless you tell me that this change must to pushed to trixie.
Regards,
Vincent
Greetings
Marc