From dc2b2254f1c25882367d3c0dd3774bd8e88e10d6 Mon Sep 17 00:00:00 2001 From: Michael Trip Date: Thu, 19 Jan 2023 15:54:40 +0100 Subject: [PATCH] fixed --- mate/root/etc/cont-init.d/60-create-user | 3 ++- xfce/root/etc/cont-init.d/60-create-user | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/mate/root/etc/cont-init.d/60-create-user b/mate/root/etc/cont-init.d/60-create-user index 4f09ebc..b79b13e 100644 --- a/mate/root/etc/cont-init.d/60-create-user +++ b/mate/root/etc/cont-init.d/60-create-user @@ -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} diff --git a/xfce/root/etc/cont-init.d/60-create-user b/xfce/root/etc/cont-init.d/60-create-user index 4f09ebc..b79b13e 100644 --- a/xfce/root/etc/cont-init.d/60-create-user +++ b/xfce/root/etc/cont-init.d/60-create-user @@ -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}