Added default shell /bin/false for all users

This commit is contained in:
Jakub Matys 2018-05-15 17:22:02 +02:00
parent 85c0ceed68
commit 2cb257b0bd
10 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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" ]

View File

@ -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" ]

View File

@ -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" ]

View File

@ -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" ]

View File

@ -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" ]