diff -urN smeserver-durep-1.5.0.old/root/usr/sbin/durep.daily smeserver-durep-1.5.0/root/usr/sbin/durep.daily --- smeserver-durep-1.5.0.old/root/usr/sbin/durep.daily 2021-03-04 13:39:50.000000000 +0400 +++ smeserver-durep-1.5.0/root/usr/sbin/durep.daily 2021-03-04 13:48:57.867000000 +0400 @@ -32,8 +32,9 @@ # make the stats viewable /usr/local/bin/durep -c /var/lib/durep/ -chmod 666 /var/lib/durep/* -chmod 777 /etc/e-smith/web/panels/manager/html/durep/*.cgi +chmod 644 /var/lib/durep/* +chown root:admin /etc/e-smith/web/panels/manager/html/durep/*.cgi +chmod 750 /etc/e-smith/web/panels/manager/html/durep/*.cgi # remove ds file not renewd for more than 24 hours find /var/lib/durep/ -type f -iname *.ds -mtime +"1" |xargs rm -f