2018-11-19 01:14:10 +01:00
|
|
|
#! /usr/bin/env bash
|
|
|
|
|
|
|
|
##echo "--- Creating thehive user"
|
|
|
|
##useradd -U -G sudo -m -s /bin/bash thehive
|
|
|
|
##echo -e "thehive1234\nthehive1234" | passwd thehive
|
|
|
|
|
|
|
|
echo "--- Configuring sudo "
|
|
|
|
##echo %thehive ALL=NOPASSWD:ALL > /etc/sudoers.d/thehive
|
2019-05-09 05:53:36 +02:00
|
|
|
echo "%misp ALL=(ALL:ALL) NOPASSWD:ALL" > /etc/sudoers.d/misp
|
2018-11-19 01:14:10 +01:00
|
|
|
##chmod 0440 /etc/sudoers.d/thehive
|
|
|
|
chmod 0440 /etc/sudoers.d/misp
|
2019-05-15 08:23:07 +02:00
|
|
|
|
|
|
|
# Disable fancy progressbar
|
|
|
|
echo 'Dpkg::Progress-Fancy "0";' > /etc/apt/apt.conf.d/99progressbar
|
2019-05-15 10:23:43 +02:00
|
|
|
echo 'Dpkg::Use-Pty "0";' >> /etc/apt/apt.conf.d/99progressbar
|