Commit 063459d6 authored by Robert Ricci's avatar Robert Ricci

Make a .ssh directory for root.

parent d5f4fe40
......@@ -342,8 +342,16 @@ Phase "sudoers", "Editing $SUDOERS", sub {
};
Phase "ssh", "Allowing root ssh", sub {
DoneIfEdited($SSHD_CONFIG);
AppendToFileFatal($SSHD_CONFIG,"PermitRootLogin yes");
Phase "sshdconfig", "Permitting root login through ssh", sub {
DoneIfEdited($SSHD_CONFIG);
AppendToFileFatal($SSHD_CONFIG,"PermitRootLogin yes");
};
Phase "dotssh", "Making root's .ssh directory", sub {
DoneIfExists("/root/.ssh");
mkdir("/root/.ssh",0700) or
PhaseFail("Unable to create /root/.ssh: $!");
};
};
Phase "capture", "Setting up capture", sub {
......
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