parent
74b9a13f84
commit
76060613ef
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ if [ "${USER}" != "git" ]; then
|
||||||
# rename user
|
# rename user
|
||||||
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
|
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
|
||||||
# switch sshd config to different user
|
# switch sshd config to different user
|
||||||
sed -i -e "s/AllowUsers git/AllowUsers ${USER}/g" /etc/ssh/sshd_config
|
sed -i -e "s/AllowUsers git$/AllowUsers ${USER}/g" /etc/ssh/sshd_config
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Change GID for USER?
|
## Change GID for USER?
|
||||||
|
|
Reference in a new issue