diff options
author | Peter Palfrader <peter@palfrader.org> | 2008-02-23 12:59:52 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2008-02-23 12:59:52 +0000 |
commit | c6a7ab729cbf01704a7e3cb3e1e4c6505a9e4a64 (patch) | |
tree | d819da93ea0c50a8499d61db5d5b27ace9ae4d3a /debian/README.Debian | |
parent | c3ac638971b949dc99b9e8e820381a9586137d6d (diff) | |
download | tor-c6a7ab729cbf01704a7e3cb3e1e4c6505a9e4a64.tar.gz tor-c6a7ab729cbf01704a7e3cb3e1e4c6505a9e4a64.zip |
Update debian defaults in preparation for starting as root.
Previously the debian defaults were only loaded when we started Tor as
the debian-tor user. Now they are also loaded when started as root.
In addition to logging, pidfile, datadir and runasdaemon we also change
the User and Group options from their NULL default to "debian-tor" so that
Tor correctly setuids/setgids to the role user the package created.
This will allow us to start the daemon as root.
svn:r13685
Diffstat (limited to 'debian/README.Debian')
-rw-r--r-- | debian/README.Debian | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/debian/README.Debian b/debian/README.Debian index cda020b9e7..d2e8bf20dc 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -1,14 +1,16 @@ This is the Debian package for Tor, The Onion Router. Some changes have been made to the Tor source to integrate it better into -Debian. If Tor is started as the 'debian-tor' user, then: +Debian. If Tor is started as root or the 'debian-tor' user, then: -- RunAsDaemon is enabled by default. -- PidFile is set to /var/run/tor/tor.pid. No default upstream. -- default logging goes to /var/log/tor/log instead of stdout. -- DataDirectory is set to /var/lib/tor by default. Uses $HOME/.tor upstream. +- RunAsDaemon is enabled, +- PidFile is set to /var/run/tor/tor.pid (No default upstream), +- default logging goes to /var/log/tor/log (instead of stdout), +- DataDirectory is set to /var/lib/tor (uses $HOME/.tor upstream), +- User and Group are set to "debian-tor". If Tor is started as any other user it behaves just like upstream's. -- Peter Palfrader, Mon, 24 Jul 2006 05:20:30 +0200 + Sat, 23 Feb 2008 13:44:40 +0100 |