misp-packer/scripts/users.sh

16 lines
479 B
Bash
Raw Normal View History

#! /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
echo "--- Creating zmqs user"
useradd -U -G www-data -m -s /bin/bash zmqs
echo zmqs:zmqs"Password1234" | chpasswd