[guadec-web/oscp-2018] Make sure the guadecweb user owns its home directory



commit a62caa0a1c5f2709e56582b81710344098b1387b
Author: Andrea Veri <averi redhat com>
Date:   Fri Sep 28 14:33:15 2018 +0200

    Make sure the guadecweb user owns its home directory

 Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/Dockerfile b/Dockerfile
index 779360a..8c2b484 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -21,6 +21,10 @@ RUN useradd -u 1001 -g 0 -d ${GUADEC_HOME}/ -r -s /usr/sbin/nologin guadecweb
 
 USER 1001
 
+RUN chown -R 1001:0 ${GUADEC_HOME} && \
+    chmod -R 664 ${GUADEC_HOME} && \
+    find ${GUADEC_HOME} -type d -exec chmod 775 {} +
+
 EXPOSE 8080
 
 CMD ["/entrypoint.sh"]


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]