Commit 186e1a73 authored by Anton Midyukov's avatar Anton Midyukov

live: enable root login via ssh using password in Live Rescue

parent f0f3ef38
......@@ -30,6 +30,10 @@ ExecStart=
ExecStart=-agetty -o '-p -f -- \\u' --keep-baud 115200,57600,38400,9600 --autologin root %I $TERM
EOF
# enable root login via ssh using password
[ ! -f /etc/openssh/sshd_config ] ||
sed -i 's/#PermitRootLogin without-password/PermitRootLogin yes/' /etc/openssh/sshd_config
mkdir -p /etc/systemd/system/live-rescue.target.d
cat>>/etc/systemd/system/live-rescue.target<<'EOF'
[Unit]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment