Skip to content

Commit a77587f

Browse files
fmoessbauerchombourger
authored andcommitted
fix(mtda-service): create home dir of user mtda
In the ISAR integration, we change the mtda user to be used for interactive logins. However, this requires a homedir, as usermod does not create a homedir for a user that did not have one before (which is also correct, as the home bootstrapping only happens on adduser). As the ISAR user creation logic is executed after the rootfs install, the postinst script of mtda-service does not know about the mtda user and creates no homedir. Then, when ISAR changes the user, it was created without a home, hence the changed user also not gets any home. By that, the mtda user remains without a home, which leads to various warnings on login. We fix this by always creating the mtda user with a homedir. Fixes: 5bf7a48 ("fix(www): switch from flask to tornado") Signed-off-by: Felix Moessbauer <[email protected]>
1 parent 254bf7a commit a77587f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/mtda-service.postinst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ case "$1" in
1111
echo "libcomposite" >/etc/modules || exit ${?}
1212
fi
1313
if ! getent passwd mtda >/dev/null; then
14-
adduser --system --group --no-create-home --disabled-login mtda
14+
adduser --system --group --home /var/lib/mtda --disabled-login mtda
1515
fi
1616
;;
1717

0 commit comments

Comments
 (0)