urBackup Appliance Fun
Here’s some fun stuff to learn about the urbackup appliance
-
By default there is no firewall, but it’s locked down so one’s not needed, but I installed one anyway
-
You should be able to
sudo su -
from the admin user, if not; shut the appliance down, then in grub hit e, then addinit=/bin/bash
at the end of the line that saysquiet
, thenCTRL+X
to boot, thenecho 'admin ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/99-admin
. Is this the safest idea, NO, but it get us full control and you don’t even need a password
After each update urBackup resets all data other than urbackup data. Here is how to have it install something after
nano /var/urbackup/post-system-update.local
#!/bin/bash
# Install MeshCentral
curl -s -u'user:pass' https://bash.domain.com/installmc.sh | bash
# Install Telegraf
curl -s -u'user:pass' https://bash.domian.com/installTelegraf.sh | bash
# Override hostname
sed -i 's/hostname = ""/hostname = "urbackup.domain.com"/g' /etc/telegraf/telegraf.conf
# Enable telegraf
systemctl enable telegraf.service --now
# Install Firewall
curl -s -u'user:pass' https://bash.domain.com/installUFW.sh | bash
# Config firewall
ufw allow http
ufw allow https
ufw allow 55415/tcp
# Add nick as passwordless sudo
echo 'USER_NAME ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/99-USER_NAME
^^ The above will now run after each update :-) ^^
<- OTHERS ->