[or-cvs] Make logs readable by the system administrators (group adm)

Peter Palfrader weasel at seul.org
Fri Nov 12 16:48:29 UTC 2004


Update of /home/or/cvsroot/debian
In directory moria.mit.edu:/tmp/cvs-serv28241/debian

Modified Files:
	changelog tor.postinst 
Log Message:
Make logs readable by the system administrators (group adm)

Index: changelog
===================================================================
RCS file: /home/or/cvsroot/debian/changelog,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -d -r1.68 -r1.69
--- changelog	12 Nov 2004 16:47:21 -0000	1.68
+++ changelog	12 Nov 2004 16:48:27 -0000	1.69
@@ -2,6 +2,7 @@
 
   * unreleased.
   * Symlink tor(8) manpage to torrc(5).
+  * Make logs readable by the system administrators (group adm).
 
  -- Peter Palfrader <weasel at debian.org>  Fri, 12 Nov 2004 17:43:06 +0100
 

Index: tor.postinst
===================================================================
RCS file: /home/or/cvsroot/debian/tor.postinst,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- tor.postinst	13 Jan 2004 13:40:00 -0000	1.1
+++ tor.postinst	12 Nov 2004 16:48:27 -0000	1.2
@@ -47,6 +47,18 @@
 	chmod -R 700 /var/$i/tor
 	find /var/$i/tor -type f -exec chmod 600 '{}' ';'
     done
+    chgrp -R adm  /var/log/tor
+    chmod -R g+rX /var/log/tor
+    chmod    g+s  /var/log/tor
+else
+    # fix permissions of logs after 0.0.8+0.0.9pre5-1
+    if [ "$1" = "configure" ]; then
+        if dpkg --compare-versions "$2" le "0.0.8+0.0.9pre5-1" ; then
+            chgrp -R adm  /var/log/tor
+            chmod -R g+rX /var/log/tor
+            chmod    g+s  /var/log/tor
+        fi
+    fi
 fi
 
 #DEBHELPER#



More information about the tor-commits mailing list