aboutsummaryrefslogtreecommitdiffstats
path: root/config/hooks/tor-usergroup.sh.chroot
diff options
context:
space:
mode:
authorficus <ficus@robocracy.org>2012-11-19 17:50:17 +0100
committerficus <ficus@robocracy.org>2012-11-19 17:50:17 +0100
commit337071e30fdf50270748e93ab7b6152530d3d3c2 (patch)
tree929b9e97427a5570f3446adeb49f0ac2ef16767c /config/hooks/tor-usergroup.sh.chroot
parent3c45f0b8149f2970d65069cd5ea96d15aa8f0356 (diff)
downloadtorouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.tar.gz
torouter-live-337071e30fdf50270748e93ab7b6152530d3d3c2.zip
debugging user creation problem
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/*
-