Эх сурвалжийг харах

Linux installation: do not allow proxy account to write to chrooted config dir

z3APA3A 7 жил өмнө
parent
commit
0565cf050b
1 өөрчлөгдсөн 3 нэмэгдсэн , 1 устгасан
  1. 3 1
      Makefile.Linux

+ 3 - 1
Makefile.Linux

@@ -141,7 +141,9 @@ install: install-chroot-dir install-bin install-etc install-log install-man inst
 	stty echo ;\
 	fi
 	@chown -R proxy:proxy $(CHROOTDIR)
-	@chmod 660  $(CHROOTDIR)/conf/*
+	@chmod 550  $(CHROOTDIR)/
+	@chmod 550  $(CHROOTDIR)/conf/
+	@chmod 440  $(CHROOTDIR)/conf/*
 	@echo ""
 	@echo 3proxy installed.
 	@echo use