From 4b7afd6137b62dfcfc09aa8a05f59935fef69489 Mon Sep 17 00:00:00 2001 From: ficus Date: Sat, 17 Nov 2012 01:19:44 +0100 Subject: import conf from old torouter repository --- config/hooks/remove-packages.sh.chroot | 5 +++++ config/hooks/tor-usergroup.sh.chroot | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100755 config/hooks/remove-packages.sh.chroot create mode 100755 config/hooks/tor-usergroup.sh.chroot (limited to 'config/hooks') diff --git a/config/hooks/remove-packages.sh.chroot b/config/hooks/remove-packages.sh.chroot new file mode 100755 index 0000000..10fa78b --- /dev/null +++ b/config/hooks/remove-packages.sh.chroot @@ -0,0 +1,5 @@ +#!/bin/sh + +apt-get -f -y remove --purge polipo minissdpd +apt-get -y remove exim4-base exim4-config exim4-daemon-light dbus isc-dhcp-server + diff --git a/config/hooks/tor-usergroup.sh.chroot b/config/hooks/tor-usergroup.sh.chroot new file mode 100755 index 0000000..e46ad16 --- /dev/null +++ b/config/hooks/tor-usergroup.sh.chroot @@ -0,0 +1,15 @@ +#!/bin/sh + +export ADMINUSER="tor" +export ADMINGROUP="tor" +export TORADMINGROUP="debian-tor" + +# add users and groups (ignore failures if groups already exist) +addgroup $ADMINGROUP +useradd -g $ADMINGROUP -G $TORADMINGROUP -s /bin/bash $ADMINUSER +# TODO: $ADMINUSER passwd? + +# give Tor permission to modify it's own configuration +chgrp $TORADMINGROUP /etc/tor/ /etc/tor/* +chmod g+rw /etc/tor/ /etc/tor/* + -- cgit v1.2.3