From 6adb508f37331a0fcf47c6c09d4f8930c14d6c6d Mon Sep 17 00:00:00 2001 From: Richard Alpe Date: Tue, 23 May 2023 16:52:43 +0200 Subject: [PATCH] confd: add new factory user admin:admin This patch adds a new user "admin" with the password "admin". The password is hashed with sha512 ($6) as a hint to new users attempting to change the password (avoid the weakest algorithms). Signed-off-by: Richard Alpe --- .../rootfs/etc/auto-factory.d/10-authentication.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 board/netconf/rootfs/etc/auto-factory.d/10-authentication.json diff --git a/board/netconf/rootfs/etc/auto-factory.d/10-authentication.json b/board/netconf/rootfs/etc/auto-factory.d/10-authentication.json new file mode 100644 index 00000000..806b62b8 --- /dev/null +++ b/board/netconf/rootfs/etc/auto-factory.d/10-authentication.json @@ -0,0 +1,12 @@ +{ + "ietf-system:system": { + "authentication": { + "user": [ + { + "name": "admin", + "password": "$6$bKPp6xu45L1cmp70$fcwDhGZct4q8LxwPASf9iVHyWqnklcdjeYi/SupLo1K9nb.aAQUz48.3qTcW38XL6gQzfHyGoyeDG2orjPUwm1" + } + ] + } + } +}