aboutsummaryrefslogtreecommitdiffstats
path: root/config/hooks/tor-usergroup.sh.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'config/hooks/tor-usergroup.sh.chroot')
-rwxr-xr-xconfig/hooks/tor-usergroup.sh.chroot17
1 files changed, 0 insertions, 17 deletions
diff --git a/config/hooks/tor-usergroup.sh.chroot b/config/hooks/tor-usergroup.sh.chroot
deleted file mode 100755
index 67ca241..0000000
--- a/config/hooks/tor-usergroup.sh.chroot
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-echo "Creating tor user and groups"
-
-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/*
-