From 1044ef3372357772a8584f5b01ed15a2aefbb353 Mon Sep 17 00:00:00 2001 From: yodax Date: Wed, 10 Oct 2018 08:23:24 +0200 Subject: [PATCH] Added the rsylog package, corrected permission, added root to sudoers --- setup/system.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/setup/system.sh b/setup/system.sh index 2fecac8e..cb0fa323 100755 --- a/setup/system.sh +++ b/setup/system.sh @@ -14,6 +14,20 @@ source setup/functions.sh # load our functions echo $PRIMARY_HOSTNAME > /etc/hostname hostname $PRIMARY_HOSTNAME +# ### Fix permissions + +# The default Ubuntu Bionic image on Scaleway throws warnings during setup about incorrect +# permissions (group writeable) set on the following directories. + +chmod g-w /etc /etc/default /usr + +# ### Fix sudo + +# The default Ubuntu Bionic image on Scaleway doesn't include root in the sudoers file +# preventing us from running commands as other users + +tools/editconf.py /etc/sudoers "root ALL=(ALL) ALL" + # ### Add swap space to the system # If the physical memory of the system is below 2GB it is wise to create a @@ -119,7 +133,8 @@ echo Installing system packages... apt_install python3 python3-dev python3-pip \ netcat-openbsd wget curl git sudo coreutils bc \ haveged pollinate unzip \ - unattended-upgrades cron ntp fail2ban + unattended-upgrades cron ntp fail2ban \ + rsyslog # ### Suppress Upgrade Prompts # When Ubuntu 20 comes out, we don't want users to be prompted to upgrade,