Use rbash for nova user instead of bash
We do not need to allow execute all commands, rbash is more than enough Change-Id: I266e2723aee4dcf608f2a29bb5adc970de4d3b56
This commit is contained in:
parent
97263c21d1
commit
4c8bfa468e
@ -5,7 +5,7 @@ set -ex
|
||||
groupadd -g ${GID} ${PROJECT}
|
||||
if [[ "${PROJECT}" == "nova" ]];then
|
||||
# NOTE: bash needed for nova to support instance migration
|
||||
useradd -u ${UID} -g ${PROJECT} -M -d /var/lib/${PROJECT} -s /bin/bash -c "${PROJECT} user" ${PROJECT}
|
||||
useradd -u ${UID} -g ${PROJECT} -M -d /var/lib/${PROJECT} -s /bin/rbash -c "${PROJECT} user" ${PROJECT}
|
||||
else
|
||||
useradd -u ${UID} -g ${PROJECT} -M -d /var/lib/${PROJECT} -s /usr/sbin/nologin -c "${PROJECT} user" ${PROJECT}
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user