Set the shell to /sbin/nologin for security

This commit is contained in:
cll 2017-09-25 16:04:51 +08:00 committed by Michael Klishin
parent e9405fd2f5
commit 7ecae0ba48
No known key found for this signature in database
GPG Key ID: E80EDCFA0CDB21EE
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ fi
# create rabbitmq user
if ! getent passwd rabbitmq >/dev/null; then
useradd -r -g rabbitmq -d %{_localstatedir}/lib/rabbitmq rabbitmq \
useradd -r -g rabbitmq -d %{_localstatedir}/lib/rabbitmq -s /sbin/nologin rabbitmq \
-c "RabbitMQ messaging server"
fi