diff options
author | ramon <ramongomez@us.es> | 2016-04-26 17:06:23 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-04-26 17:06:23 +0000 |
commit | baea6c327015d859d385caa0239d3aef1371ce2e (patch) | |
tree | 0bec9be36be1f0c5484e0ab98a4fe35c12a6b0f6 /server/bin/checkperms | |
parent | f6284d27b4d6ffb8370eef228a771aea2e39b53b (diff) |
#736 #743: Mejorar los permisos habilitando al servicio web solo acceso de lectura a los ficheros de configuraciĆ³n necesarios.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4911 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/checkperms')
-rwxr-xr-x | server/bin/checkperms | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/bin/checkperms b/server/bin/checkperms index a2d5e787..483b176f 100755 --- a/server/bin/checkperms +++ b/server/bin/checkperms @@ -42,10 +42,10 @@ chmod -R 775 $OPENGNSYS_DIR/{log/clients,images} find $OPENGNSYS_DIR/client/{interfaceAdm,scripts} ! -name "*.txt" -exec chmod +x {} \; chown $OPENGNSYS_USER:$OPENGNSYS_USER $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso chmod 700 $OPENGNSYS_DIR/client/interfaceAdm/CambiarAcceso -chown root:root $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmRepo,ogAdmAgent}*.cfg -chmod 600 $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmRepo,ogAdmAgent}*.cfg -chown $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/controlacceso*.php -chmod 600 $OPENGNSYS_DIR/www/controlacceso*.php +chown root:root $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmAgent}*.cfg +chmod 600 $OPENGNSYS_DIR/etc/{ogAdmServer,ogAdmAgent}*.cfg +chown root:$APACHE_GROUP $OPENGNSYS_DIR/{www/controlacceso*.php,etc/ogAdmRepo*.cfg} +chmod 640 $OPENGNSYS_DIR/{www/controlacceso*.php,etc/ogAdmRepo*.cfg} chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/images/{fotos,iconos} chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/www/api chown -R $APACHE_USER:$APACHE_GROUP $OPENGNSYS_DIR/tftpboot/menu.lst |