diff --git a/debian/tarantool-common.postinst b/debian/tarantool-common.postinst index 898a1fca387ff367a43dab9619869bba05788ef1..df37d0bbda872e6329a5366e35e40f0ab0eaa872 100644 --- a/debian/tarantool-common.postinst +++ b/debian/tarantool-common.postinst @@ -18,7 +18,7 @@ case "$1" in tarantool fi - install -d -o$SYSUSER -gadm -m2750 /var/log/tarantool + install -d -o$SYSUSER -gadm -m750 /var/log/tarantool install -d -o$SYSUSER -g$SYSUSER -m750 /var/run/tarantool install -d -o$SYSUSER -g$SYSUSER -m750 /var/lib/tarantool ;; diff --git a/extra/dist/tarantool.tmpfiles.conf.in b/extra/dist/tarantool.tmpfiles.conf.in index f9578cb5d226c1ace001833b4466d35fdd1a6816..7c4c5b4253be36432d30d8540e31056a5c6ca340 100644 --- a/extra/dist/tarantool.tmpfiles.conf.in +++ b/extra/dist/tarantool.tmpfiles.conf.in @@ -1 +1 @@ -d @TARANTOOL_RUNDIR@ 0755 @TARANTOOL_USER@ @TARANTOOL_USER@ - +d @TARANTOOL_RUNDIR@ 0750 @TARANTOOL_USER@ @TARANTOOL_USER@ - diff --git a/extra/dist/tarantoolctl.in b/extra/dist/tarantoolctl.in index c827f403f707c6e1eeb87b877527c9105bdf82b9..535154c96b9170706cb45c839b8a0a0113c5881b 100755 --- a/extra/dist/tarantoolctl.in +++ b/extra/dist/tarantoolctl.in @@ -343,7 +343,7 @@ end local function mkdir(dirname) log.info("mkdir %s", dirname) - if not fio.mkdir(dirname, tonumber('0755', 8)) then + if not fio.mkdir(dirname, tonumber('0750', 8)) then log.error("Can't mkdir %s: %s", dirname, errno.strerror()) os.exit(-1) end diff --git a/rpm/tarantool.spec b/rpm/tarantool.spec index 1c907dd496a24f221dfe5bb9ea0e11cf352efb43..c4f3618dad1d60a1c98204d6df8c88cdae73678f 100644 --- a/rpm/tarantool.spec +++ b/rpm/tarantool.spec @@ -152,7 +152,7 @@ chkconfig --del tarantool %config(noreplace) %{_sysconfdir}/tarantool/instances.available/example.lua # Use 0750 for database files %attr(0750,tarantool,tarantool) %dir %{_localstatedir}/lib/tarantool/ -%attr(2750,tarantool,adm) %dir %{_localstatedir}/log/tarantool/ +%attr(0750,tarantool,adm) %dir %{_localstatedir}/log/tarantool/ %config(noreplace) %{_sysconfdir}/logrotate.d/tarantool %if %{with systemd}