Skip to content

Commit

Permalink
Update ss-perms.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi authored Nov 25, 2020
1 parent f5c2e30 commit a5de9f0
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ss-perms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,15 @@ if [ ! -f "/var/www/logs/mysql-gen.log" ]; then touch "/var/www/logs/mysql-gen.l
if [ ! -f "/var/www/logs/mysql-error.log" ]; then touch "/var/www/logs/mysql-error.log"; fi
if [ ! -f "/var/www/logs/mysql-slow.log" ]; then touch "/var/www/logs/mysql-slow.log"; fi
if [ ! -f "/var/www/logs/nginx.log" ]; then touch "/var/www/logs/nginx.log"; fi
if [ ! -f "/var/www/logs/redis.log" ]; then touch "/var/www/logs/redis.log"; fi


## individual log files ##

chown root:root /var/www/logs/cron*.log*
chown www-data:www-data /var/www/logs/error*.log*
chown mysql:mysql /var/www/logs/mysql*.log*
chown www-data:www-data /var/www/logs/nginx*.log*
chown redis:redis /var/www/logs/redis*.log*


chmod 0644 /var/www/logs/*.log ## 6755 should also work

Expand All @@ -138,6 +138,13 @@ source /var/www/ss-perms-clamav
## run ss-perms-adminer ##
source /var/www/ss-perms-adminer

####################################################################################################
#### SS-Perms: Reset Permissions (Redis) ###########################################################
####################################################################################################

## run ss-perms-redis ##
source /var/www/ss-perms-redis

####################################################################################################
#### SS-Perms: Reset Permissions (Public HTML Directory) ###########################################
####################################################################################################
Expand Down

0 comments on commit a5de9f0

Please sign in to comment.