summaryrefslogtreecommitdiffstats
path: root/server/bin
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2020-11-30 12:39:07 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2020-11-30 15:56:56 +0100
commit608aa15970ada7c8d6687e2b60e7a361fe7ad6ea (patch)
treec863dcc1d8915b864e49aa35c74035cb2935eb8d /server/bin
parenta3e5d74330daff6a39687484f4cf515b0f514fb4 (diff)
#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.
Diffstat (limited to 'server/bin')
-rwxr-xr-xserver/bin/checkperms2
1 files changed, 2 insertions, 0 deletions
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