setup.bash: Some fixes to server installation process.

(imported from commit 13a675495cc561060c91958c5f217f706a1f4501)
This commit is contained in:
Tim Abbott 2012-09-12 18:53:22 -04:00
parent 3e5008b143
commit d997eacc5e
1 changed files with 7 additions and 1 deletions

View File

@ -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