blob: 67ca2413215fdb9d79a677b95758d47ae8e724fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/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/*
|