add umask permissions to useradd command

This commit is contained in:
Jonas 2017-01-07 23:00:28 -05:00 committed by GitHub
parent 4fc08701ef
commit 7cdf186905

View File

@ -13,7 +13,7 @@ UPDATE_D := $(wildcard update.d/*)
.PHONY: install update clean
install: update
useradd --system --user-group --create-home --home $(MSCS_HOME) $(MSCS_USER)
useradd --system --user-group --create-home -K UMASK=0022 --home $(MSCS_HOME) $(MSCS_USER)
chown -R $(MSCS_USER):$(MSCS_GROUP) $(MSCS_HOME)
if which systemctl; then \
systemctl -f enable mscs.service; \