This commit is contained in:
Michael Trip 2023-01-19 15:54:40 +01:00
parent 30be10b904
commit dc2b2254f1
2 changed files with 4 additions and 2 deletions

View file

@ -13,6 +13,7 @@ chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}
chmod 755 /etc
chmod 755 /etc/xrdp
chmod 755 /etc/xrdp/sesman.ini
touch /home/${USERNAME}/lock.file
# default file copies first run
@ -24,4 +25,4 @@ touch /home/${USERNAME}/lock.file
# permissions
PERM=$(stat -c '%U' /home/${USERNAME}/.config)
[[ "${PERM}" != "${USERNAME}" ]] && \
chown -R ${USERNAME}:${USERNAME} /config
chown -R ${USERNAME}:${USERNAME} /home/${USERNAME}