Skip to content

Commit 90bc036

Browse files
committed
debian/cephadm.postinst: specify --home when adduser
quote from adduser/NEWS.Debian.gz: > System user home defaults to /nonexistent if --home is not specified. > Packages that call adduser to create system accounts should explicitly > specify a location for /home (see Lintian check > maintainer-script-lacks-home-in-adduser). so let's follow this change in adduser. otherwise "cephadm" would have a $HOME at `/nonexistent`. Fixes: https://tracker.ceph.com/issues/64069 Signed-off-by: Kefu Chai <[email protected]>
1 parent c517d0b commit 90bc036

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

debian/cephadm.postinst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ case "$1" in
2828
adduser --quiet \
2929
--system \
3030
--disabled-password \
31+
--home /home/cephadm \
3132
--gecos 'cephadm user for mgr/cephadm' \
3233
--shell /bin/bash cephadm 2>/dev/null || true
3334
echo "..done"

0 commit comments

Comments
 (0)