Add joinmarket user to bitcoin group

This commit is contained in:
Taylor Helsper 2022-10-22 11:38:11 -05:00
parent 4d096cc398
commit 8e7e7499b4
3 changed files with 3 additions and 0 deletions

View File

@ -45,6 +45,7 @@ if ! skip_base_upgrades ; then
# User updates and settings
adduser admin bitcoin
adduser joinmarket bitcoin
grep "joinmarket" /etc/sudoers || (echo 'joinmarket ALL=(ALL) NOPASSWD:ALL' | EDITOR='tee -a' visudo)
passwd -l root

View File

@ -253,6 +253,7 @@ useradd -m -s /bin/bash joinmarket || true
# User updates and settings
adduser admin bitcoin
adduser joinmarket bitcoin
grep "joinmarket" /etc/sudoers || (echo 'joinmarket ALL=(ALL) NOPASSWD:ALL' | EDITOR='tee -a' visudo)
# Regen SSH keys (check if force regen or keys are missing / empty)

View File

@ -265,6 +265,7 @@ usermod -a -G debian-tor bitcoin
# Make admin a member of bitcoin
adduser admin bitcoin
adduser joinmarket bitcoin
grep "joinmarket" /etc/sudoers || (echo 'joinmarket ALL=(ALL) NOPASSWD:ALL' | EDITOR='tee -a' visudo)