[packages/pure-ftpd] - 600 for sockets is enough

arekm arekm at pld-linux.org
Wed Mar 27 19:02:21 CET 2019


commit 1d16b00b16742b1eae18d3cf4ba3491f550d02ee
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Mar 27 19:01:54 2019 +0100

    - 600 for sockets is enough

 pure-ftpd.init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/pure-ftpd.init b/pure-ftpd.init
index a34fdba..f33c263 100644
--- a/pure-ftpd.init
+++ b/pure-ftpd.init
@@ -47,7 +47,7 @@ start() {
 			daemon /usr/sbin/pure-authd --uid 326 --gid 326 --pid /var/run/pure-authd.pid \
 				--run "$PURE_AUTH_SCRIPT" --socket "$PURE_AUTH_SOCKET" --daemonize
 			RETVAL=$?
-			[ $RETVAL -eq 0 ] && chown root:root "$PURE_AUTH_SOCKET" && chmod 700 "$PURE_AUTH_SOCKET"
+			[ $RETVAL -eq 0 ] && chown root:root "$PURE_AUTH_SOCKET" && chmod 600 "$PURE_AUTH_SOCKET"
 		fi
 		if [ $RETVAL -eq 0 -a -x "$PURE_CERT_SCRIPT" ]; then
 			PURE_CERT=yes
@@ -62,7 +62,7 @@ start() {
 			daemon /usr/sbin/pure-certd --uid 335 --gid 335 --pid /var/run/pure-certd.pid \
 				--run "$PURE_CERT_SCRIPT" --socket "$PURE_CERT_SOCKET" --daemonize
 			RETVAL=$?
-			[ $RETVAL -eq 0 ] && chown root:root "$PURE_CERT_SOCKET" && chmod 700 "$PURE_CERT_SOCKET"
+			[ $RETVAL -eq 0 ] && chown root:root "$PURE_CERT_SOCKET" && chmod 600 "$PURE_CERT_SOCKET"
 		fi
 		if [ $RETVAL -eq 0 ]; then
 			msg_starting pure-ftpd
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pure-ftpd.git/commitdiff/1d16b00b16742b1eae18d3cf4ba3491f550d02ee



More information about the pld-cvs-commit mailing list