From 2cb257b0bd3c6050a18e2d3fb2a33ca157691193 Mon Sep 17 00:00:00 2001 From: Jakub Matys Date: Tue, 15 May 2018 17:22:02 +0200 Subject: [PATCH] Added default shell /bin/false for all users --- build/deb/debian/blockbook-bch-testnet.postinst | 2 +- build/deb/debian/blockbook-bch.postinst | 2 +- build/deb/debian/blockbook-btc-testnet.postinst | 2 +- build/deb/debian/blockbook-btc.postinst | 2 +- build/deb/debian/blockbook-zec.postinst | 2 +- contrib/backends/bcash/debian/bcash-bch.postinst | 2 +- contrib/backends/bcash/debian/bcash-testnet.postinst | 2 +- contrib/backends/bitcoin/debian/bitcoin-btc.postinst | 2 +- contrib/backends/bitcoin/debian/bitcoin-testnet.postinst | 2 +- contrib/backends/zcash/debian/zcash-zec.postinst | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build/deb/debian/blockbook-bch-testnet.postinst b/build/deb/debian/blockbook-bch-testnet.postinst index aa28cbbe..daa1910e 100644 --- a/build/deb/debian/blockbook-bch-testnet.postinst +++ b/build/deb/debian/blockbook-bch-testnet.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u blockbook-bch &> /dev/null then - useradd --system -M -U blockbook-bch + useradd --system -M -U blockbook-bch -s /bin/false fi for dir in /opt/coins/data/bch-testnet/blockbook /opt/coins/blockbook/bch-testnet/logs diff --git a/build/deb/debian/blockbook-bch.postinst b/build/deb/debian/blockbook-bch.postinst index ee286500..ebc552d1 100644 --- a/build/deb/debian/blockbook-bch.postinst +++ b/build/deb/debian/blockbook-bch.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u blockbook-bch &> /dev/null then - useradd --system -M -U blockbook-bch + useradd --system -M -U blockbook-bch -s /bin/false fi for dir in /opt/coins/data/bch/blockbook /opt/coins/blockbook/bch/logs diff --git a/build/deb/debian/blockbook-btc-testnet.postinst b/build/deb/debian/blockbook-btc-testnet.postinst index c8365a81..e5097cb5 100644 --- a/build/deb/debian/blockbook-btc-testnet.postinst +++ b/build/deb/debian/blockbook-btc-testnet.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u blockbook-btc &> /dev/null then - useradd --system -M -U blockbook-btc + useradd --system -M -U blockbook-btc -s /bin/false fi for dir in /opt/coins/data/btc-testnet/blockbook /opt/coins/blockbook/btc-testnet/logs diff --git a/build/deb/debian/blockbook-btc.postinst b/build/deb/debian/blockbook-btc.postinst index 9b839b8e..87dcf12a 100644 --- a/build/deb/debian/blockbook-btc.postinst +++ b/build/deb/debian/blockbook-btc.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u blockbook-btc &> /dev/null then - useradd --system -M -U blockbook-btc + useradd --system -M -U blockbook-btc -s /bin/false fi for dir in /opt/coins/data/btc/blockbook /opt/coins/blockbook/btc/logs diff --git a/build/deb/debian/blockbook-zec.postinst b/build/deb/debian/blockbook-zec.postinst index 668103af..e3018848 100644 --- a/build/deb/debian/blockbook-zec.postinst +++ b/build/deb/debian/blockbook-zec.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u blockbook-zec &> /dev/null then - useradd --system -M -U blockbook-zec + useradd --system -M -U blockbook-zec -s /bin/false fi for dir in /opt/coins/data/zec/blockbook /opt/coins/blockbook/zec/logs diff --git a/contrib/backends/bcash/debian/bcash-bch.postinst b/contrib/backends/bcash/debian/bcash-bch.postinst index 82a9b058..5c0a6b46 100644 --- a/contrib/backends/bcash/debian/bcash-bch.postinst +++ b/contrib/backends/bcash/debian/bcash-bch.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u bcash &> /dev/null then - useradd --system -M -U bcash + useradd --system -M -U bcash -s /bin/false fi if [ "$(stat -c '%U' /opt/coins/data/bch/bitcoin)" != "bcash" ] diff --git a/contrib/backends/bcash/debian/bcash-testnet.postinst b/contrib/backends/bcash/debian/bcash-testnet.postinst index 8692e3f4..6cf4fdff 100644 --- a/contrib/backends/bcash/debian/bcash-testnet.postinst +++ b/contrib/backends/bcash/debian/bcash-testnet.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u bcash &> /dev/null then - useradd --system -M -U bcash + useradd --system -M -U bcash -s /bin/false fi if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bcash" ] diff --git a/contrib/backends/bitcoin/debian/bitcoin-btc.postinst b/contrib/backends/bitcoin/debian/bitcoin-btc.postinst index 84a26bf8..495f0345 100644 --- a/contrib/backends/bitcoin/debian/bitcoin-btc.postinst +++ b/contrib/backends/bitcoin/debian/bitcoin-btc.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u bitcoin &> /dev/null then - useradd --system -M -U bitcoin + useradd --system -M -U bitcoin -s /bin/false fi if [ "$(stat -c '%U' /opt/coins/data/btc/bitcoin)" != "bitcoin" ] diff --git a/contrib/backends/bitcoin/debian/bitcoin-testnet.postinst b/contrib/backends/bitcoin/debian/bitcoin-testnet.postinst index e95584a3..ae1a2441 100644 --- a/contrib/backends/bitcoin/debian/bitcoin-testnet.postinst +++ b/contrib/backends/bitcoin/debian/bitcoin-testnet.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u bitcoin &> /dev/null then - useradd --system -M -U bitcoin + useradd --system -M -U bitcoin -s /bin/false fi if [ "$(stat -c '%U' /opt/coins/data/btc-testnet/bitcoin)" != "bitcoin" ] diff --git a/contrib/backends/zcash/debian/zcash-zec.postinst b/contrib/backends/zcash/debian/zcash-zec.postinst index 510c8a43..42acc20d 100644 --- a/contrib/backends/zcash/debian/zcash-zec.postinst +++ b/contrib/backends/zcash/debian/zcash-zec.postinst @@ -6,7 +6,7 @@ case "$1" in configure) if ! id -u zcash &> /dev/null then - useradd --system -M -U zcash + useradd --system -M -U zcash -s /bin/false fi if [ "$(stat -c '%U' /opt/coins/data/zec/zcash)" != "zcash" ]