summaryrefslogtreecommitdiff
path: root/scripts/custom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/custom.sh')
-rw-r--r--scripts/custom.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/custom.sh b/scripts/custom.sh
new file mode 100644
index 0000000..0e4e3a2
--- /dev/null
+++ b/scripts/custom.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# Allow root login
+sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config
+
+# Set root pw
+usermod -p "$(echo vagrant | openssl passwd -1 -stdin)" root