[pinto] 03/05: Updated permissions to /etc/pinto folder.

Oleg Gashev oleg at gashev.net
Thu Oct 17 21:18:49 UTC 2013


This is an automated email from the git hooks/post-receive script.

gashev-guest pushed a commit to branch master
in repository pinto.

commit b1ac11bb427b6e8772e97e3aea57f663d963bfdf
Author: Oleg Gashev <oleg at gashev.net>
Date:   Thu Oct 17 17:07:21 2013 -0400

    Updated permissions to /etc/pinto folder.
---
 debian/pinto.postinst |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/pinto.postinst b/debian/pinto.postinst
index 62b3e00..28c6fdb 100644
--- a/debian/pinto.postinst
+++ b/debian/pinto.postinst
@@ -42,7 +42,7 @@ if [ "$1" = configure ]; then
     if [ ! -d /etc/pinto ] ; then
         mkdir -p /etc/pinto
         chown pinto:pinto /etc/pinto
-        chmod 0750 /etc/pinto
+        chmod 0700 /etc/pinto
     fi
 
     db_get pinto/adminpassword
@@ -52,6 +52,8 @@ if [ "$1" = configure ]; then
     if [ -n "$admpass" ]; then
         touch "$htpw"
         echo "$admpass"|htpasswd -i "$htpw" pintoadmin
+        chown pinto:pinto  "$htpw"
+        chown 0400 "$htpw"
     fi
 
     db_set pinto/adminpassword ""

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pinto.git



More information about the Pkg-perl-cvs-commits mailing list