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 Jan 14, 2025
1 parent 7f0f01c commit ec6388f
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 ec6388f

Please sign in to comment.