Skip to content

Commit

Permalink
sshd_installer.conf: be more strict on sshpassword= identification
Browse files Browse the repository at this point in the history
Suggested-by: Frediano Ziglio <[email protected]>
Signed-off-by: Yann Dirson <[email protected]>
  • Loading branch information
ydirson committed Dec 8, 2023
1 parent f592d57 commit 77440d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion startup/sshd_installer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
ConditionKernelCommandLine=sshpassword

[Service]
ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'
ExecStartPre=/bin/sh -c '/bin/sed -e "s/.*\<sshpassword=\([^ ]*\).*/root:\1/" /proc/cmdline | /sbin/chpasswd'

0 comments on commit 77440d2

Please sign in to comment.