Warning on adduser that home dir doesn't belong to zookeeper user

Bug #1832400 reported by Bryce Harrington
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zookeeper (Ubuntu)
New
Undecided
Unassigned

Bug Description

Warning during installation on 18.04:

adduser: Warning: The home directory `/var/lib/zookeeper' does not belong to the user you are currently creating.

zookeeper.postinst has this:

"""
# creating zookeeper user if it isn't already there
if ! getent passwd $USER >/dev/null ; then
        # Adding system user
        adduser \
          --system \
          --disabled-login \
          --ingroup $GROUP \
          --home $DATADIR \
          --gecos "ZooKeeper" \
          --shell /bin/false \
          $USER >/dev/null
fi
"""

A fix/workaround may be to add --no-create-home for the adduser command.

Tags: bitesize
Bryce Harrington (bryce)
tags: added: bitesize
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.