Skip to content

Commit 3543f09

Browse files
fmoessbauerchombourger
authored andcommitted
refactor: use clear text password for mtda user
The password is anyways written in a comment and well-known. Hence, avoid the magic string (hashed password) and let ISAR take care of the hashing internally. Signed-off-by: Felix Moessbauer <[email protected]>
1 parent c26f323 commit 3543f09

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

meta-isar/recipes-core/images/mtda-image.bb

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,12 @@ IMAGE_PREINSTALL:append:lava = " lava-dispatcher"
7070
IMAGE_INSTALL:append = " expand-on-first-boot "
7171

7272
# Create a "mtda" user account with "mtda" as the default password
73-
# hash created with: python3 -c 'import crypt; print(crypt.crypt("mtda", crypt.mksalt(crypt.METHOD_SHA512)))'
7473
USERS += "mtda"
7574
GROUPS += "mtda"
7675
USER_mtda[gid] = "mtda"
7776
USER_mtda[home] = "/home/mtda"
7877
USER_mtda[comment] = "Multi-Tenant Device Access"
79-
USER_mtda[flags] = "system create-home"
78+
USER_mtda[flags] = "system create-home clear-text-password"
8079
USER_mtda[groups] = "mtda sudo"
81-
USER_mtda[password] ??= "$6$uaP1WXXu/joK8zxJ$LONexagmcWBKkY/HRQe0fVjY7n06FkX1qJUjigQ.4JVYxC9/OfBu3iJrF8hugMo2CaIh1sIOxDdpXvWWIjhfQ1"
80+
USER_mtda[password] ??= "mtda"
8281
USER_mtda[shell] = "/bin/bash"

0 commit comments

Comments
 (0)