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
|
|
|
|
echo %misp ALL=NOPASSWD:ALL > /etc/sudoers.d/misp
|
|
|
|
##chmod 0440 /etc/sudoers.d/thehive
|
|
|
|
chmod 0440 /etc/sudoers.d/misp
|
|
|
|
|
2019-02-27 11:12:43 +01:00
|
|
|
echo "--- Creating zmqs user"
|
|
|
|
useradd -U -G www-data -m -s /bin/bash zmqs
|
|
|
|
echo zmqs:zmqs"Password1234" | chpasswd
|