Comment 5 for bug 2033428

Revision history for this message
Steve Langasek (vorlon) wrote :

--- ceph-17.2.6/debian/cephadm.postinst 2023-05-15 13:39:45.000000000 +0000
+++ ceph-18.2.0/debian/cephadm.postinst 2023-09-21 08:45:43.000000000 +0000
@@ -25,7 +25,7 @@
        # 1. create user if not existing
        if ! getent passwd | grep -q "^cephadm:"; then
          echo -n "Adding system user cephadm.."
- adduser --quiet --system --disabled-password --gecos 'Ceph-dameon user for cephadm' --shell /bin/bash cephadm 2>/dev/null || true
+ adduser --quiet --system --disabled-password --home /home/cephadm --gecos 'Ceph-dameon user for cephadm' --shell /bin/bash cephadm 2>/dev/null || true
          echo "..done"
        fi

Please do not use paths under /home as home directories for system users.