Ensure the GID is actually dynamically assigned to a group as well.
This commit is contained in:
committed by
GitHub
parent
25688e6709
commit
6cb4fd6f96
@@ -2,6 +2,7 @@
|
|||||||
echo "---Checking if UID: ${UID} matches user---"
|
echo "---Checking if UID: ${UID} matches user---"
|
||||||
usermod -u ${UID} ${USER}
|
usermod -u ${UID} ${USER}
|
||||||
echo "---Checking if GID: ${GID} matches user---"
|
echo "---Checking if GID: ${GID} matches user---"
|
||||||
|
groupmod -g ${GID} ${GROUP}
|
||||||
usermod -g ${GID} ${USER}
|
usermod -g ${GID} ${USER}
|
||||||
echo "---Setting umask to ${UMASK}---"
|
echo "---Setting umask to ${UMASK}---"
|
||||||
umask ${UMASK}
|
umask ${UMASK}
|
||||||
@@ -33,4 +34,4 @@ while true
|
|||||||
do
|
do
|
||||||
wait $killpid
|
wait $killpid
|
||||||
exit 0;
|
exit 0;
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user