Added default shell /bin/false for all users
This commit is contained in:
parent
85c0ceed68
commit
2cb257b0bd
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u blockbook-bch &> /dev/null
|
if ! id -u blockbook-bch &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U blockbook-bch
|
useradd --system -M -U blockbook-bch -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in /opt/coins/data/bch-testnet/blockbook /opt/coins/blockbook/bch-testnet/logs
|
for dir in /opt/coins/data/bch-testnet/blockbook /opt/coins/blockbook/bch-testnet/logs
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u blockbook-bch &> /dev/null
|
if ! id -u blockbook-bch &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U blockbook-bch
|
useradd --system -M -U blockbook-bch -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in /opt/coins/data/bch/blockbook /opt/coins/blockbook/bch/logs
|
for dir in /opt/coins/data/bch/blockbook /opt/coins/blockbook/bch/logs
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u blockbook-btc &> /dev/null
|
if ! id -u blockbook-btc &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U blockbook-btc
|
useradd --system -M -U blockbook-btc -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in /opt/coins/data/btc-testnet/blockbook /opt/coins/blockbook/btc-testnet/logs
|
for dir in /opt/coins/data/btc-testnet/blockbook /opt/coins/blockbook/btc-testnet/logs
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u blockbook-btc &> /dev/null
|
if ! id -u blockbook-btc &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U blockbook-btc
|
useradd --system -M -U blockbook-btc -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in /opt/coins/data/btc/blockbook /opt/coins/blockbook/btc/logs
|
for dir in /opt/coins/data/btc/blockbook /opt/coins/blockbook/btc/logs
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u blockbook-zec &> /dev/null
|
if ! id -u blockbook-zec &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U blockbook-zec
|
useradd --system -M -U blockbook-zec -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in /opt/coins/data/zec/blockbook /opt/coins/blockbook/zec/logs
|
for dir in /opt/coins/data/zec/blockbook /opt/coins/blockbook/zec/logs
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u bcash &> /dev/null
|
if ! id -u bcash &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U bcash
|
useradd --system -M -U bcash -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/bch/bitcoin)" != "bcash" ]
|
if [ "$(stat -c '%U' /opt/coins/data/bch/bitcoin)" != "bcash" ]
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u bcash &> /dev/null
|
if ! id -u bcash &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U bcash
|
useradd --system -M -U bcash -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bcash" ]
|
if [ "$(stat -c '%U' /opt/coins/data/bch-testnet/bitcoin)" != "bcash" ]
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u bitcoin &> /dev/null
|
if ! id -u bitcoin &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U bitcoin
|
useradd --system -M -U bitcoin -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/btc/bitcoin)" != "bitcoin" ]
|
if [ "$(stat -c '%U' /opt/coins/data/btc/bitcoin)" != "bitcoin" ]
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u bitcoin &> /dev/null
|
if ! id -u bitcoin &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U bitcoin
|
useradd --system -M -U bitcoin -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/btc-testnet/bitcoin)" != "bitcoin" ]
|
if [ "$(stat -c '%U' /opt/coins/data/btc-testnet/bitcoin)" != "bitcoin" ]
|
||||||
|
|||||||
@ -6,7 +6,7 @@ case "$1" in
|
|||||||
configure)
|
configure)
|
||||||
if ! id -u zcash &> /dev/null
|
if ! id -u zcash &> /dev/null
|
||||||
then
|
then
|
||||||
useradd --system -M -U zcash
|
useradd --system -M -U zcash -s /bin/false
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(stat -c '%U' /opt/coins/data/zec/zcash)" != "zcash" ]
|
if [ "$(stat -c '%U' /opt/coins/data/zec/zcash)" != "zcash" ]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user