From 608aa15970ada7c8d6687e2b60e7a361fe7ad6ea Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 30 Nov 2020 12:39:07 +0100 Subject: #1009 Fix ogclient.json ownership and permissions ogclient.json has the samba password in plain text. This commit changes ownership and permissions to improve the security. --- server/bin/checkperms | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/bin/checkperms b/server/bin/checkperms index d7147967..f73f441e 100755 --- a/server/bin/checkperms +++ b/server/bin/checkperms @@ -58,4 +58,6 @@ chown -R :$OPENGNSYS_USER $OPENGNSYS_DIR/tftpboot/ogLive* find -L $OPENGNSYS_DIR/tftpboot -type d -exec chmod 755 {} \; find -L $OPENGNSYS_DIR/tftpboot -type f -exec chmod 644 {} \; chown $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/log/{ogagent,remotepc,rest}.log +chown root:"$OPENGNSYS_USER" "$OPENGNSYS_DIR"/client/ogClient/cfg/ogclient.json +chmod 640 "$OPENGNSYS_DIR"/client/ogClient/cfg/ogclient.json -- cgit v1.2.3-18-g5258