From d997eacc5e4fd7bd72d22bdbeaeb969716ab70ed Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 12 Sep 2012 18:53:22 -0400 Subject: [PATCH] setup.bash: Some fixes to server installation process. (imported from commit 13a675495cc561060c91958c5f217f706a1f4501) --- servers/humbug-dev/setup.bash | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/servers/humbug-dev/setup.bash b/servers/humbug-dev/setup.bash index e5ae0eb770..59584dead8 100755 --- a/servers/humbug-dev/setup.bash +++ b/servers/humbug-dev/setup.bash @@ -18,7 +18,13 @@ EOF service ssh restart # Create users and secure homedirs -adduser --disabled-login wiki +yes '' | adduser --disabled-password humbug +mkdir -p /home/humbug/.ssh/ +cp -a /root/.ssh/authorized_keys /home/humbug/.ssh/ +chown -R humbug:humbug /home/humbug/.ssh/ +chmod -R go-rwx /home/humbug/.ssh/ + +yes '' | adduser --disabled-login wiki chmod 700 /home/{humbug,wiki} # Resize the filesystem to fill the EBS volume