Hello, I am using tor on Ubuntu 12.10, version of tor: v0.2.3.22-rc (git-4a0c70a817797420) The documentation https://www.torproject.org/docs/tor-manual.html.en says that default value of CookieAuthentication is 0. However, until I set it 0 in my torrc, tor wanted a cookie ("host 9051 515 Authentication failed: Wrong length on authentication cookie.")
My torrc is this: FascistFirewall 1 ControlPort 9051 CookieAuthentication 0 I guess the documentation (on the web and the man page and comments in torrc file) should ve mended to reflect this. Or am I missing something? Regards, Tomas Hnyk P.S.: I know I should use some form of authentication, but I just wanted to get tor running first and see what it can do.
On Thu, Apr 4, 2013 at 10:18 AM, Tomáš Hnyk tomashnyk@gmail.com wrote:
Hello, I am using tor on Ubuntu 12.10, version of tor: v0.2.3.22-rc (git-4a0c70a817797420) The documentation https://www.torproject.org/docs/tor-manual.html.en says that default value of CookieAuthentication is 0. However, until I set it 0 in my torrc, tor wanted a cookie ("host 9051 515 Authentication failed: Wrong length on authentication cookie.")
My torrc is this: FascistFirewall 1 ControlPort 9051 CookieAuthentication 0 I guess the documentation (on the web and the man page and comments in torrc file) should ve mended to reflect this. Or am I missing something?
The default in src/or/config.c is zero: V(CookieAuthentication, BOOL, "0"),
There could be a change in the source you've got, or an override of the default option in a "torrc.defaults" file, or something.
The documentation https://www.torproject.org/docs/tor-manual.html.en says that default value of CookieAuthentication is 0. However, until I set it 0 in my torrc, tor wanted a cookie ("host 9051 515 Authentication failed: Wrong length on authentication cookie.")
Hi Tomáš. The tor man page (and the documentation you cited) talks about tor's defaults. However, since you're using Ubuntu you got this from the deb, right? If so then the deb contains a torrc of its own (which is understandably a little confusing). I believe that this is what it uses...
https://gitweb.torproject.org/debian/tor.git/blob/HEAD:/debian/tor-service-d...
On Thu, 04 Apr 2013 17:49:44 +0200, Damian Johnson atagar@torproject.org wrote:
The documentation https://www.torproject.org/docs/tor-manual.html.en says that default value of CookieAuthentication is 0. However, until I set it 0 in my torrc, tor wanted a cookie ("host 9051 515 Authentication failed: Wrong length on authentication cookie.")
Hi Tomáš. The tor man page (and the documentation you cited) talks about tor's defaults. However, since you're using Ubuntu you got this from the deb, right? If so then the deb contains a torrc of its own (which is understandably a little confusing). I believe that this is what it uses...
https://gitweb.torproject.org/debian/tor.git/blob/HEAD:/debian/tor-service-d...
Hi, thanks. I guess that's it. So I should file a bug in ubuntu/debian to mend the manpage as well, do I understand it correctly? Tomas
Hi, thanks. I guess that's it. So I should file a bug in ubuntu/debian to mend the manpage as well, do I understand it correctly? Tomas
I doubt that our debian maintainer would consider it to be a bug. Debian packages often adjust an upstream project's configuration to work better on that platform. That said, I'll point this thread out to him.
On Thu, 04 Apr 2013 21:12:35 +0200, Damian Johnson atagar@torproject.org wrote:
Hi, thanks. I guess that's it. So I should file a bug in ubuntu/debian to mend the manpage as well, do I understand it correctly? Tomas
I doubt that our debian maintainer would consider it to be a bug. Debian packages often adjust an upstream project's configuration to work better on that platform. That said, I'll point this thread out to him.
Thanks for that. I hope he might. I would understand if there were a line in my torrc stating saying "CookieAuthentication 1". But I tried and I cannot find any text config file on my system that would specify that this is the default, co I deduce it must have been included in compile time, which - to me - is very confusing. But maybe that is the debian way. Anyway, thanks a lot! Tomas
On Thu, 04 Apr 2013, Tomáš Hnyk wrote:
Thanks for that. I hope he might. I would understand if there were a line in my torrc stating saying "CookieAuthentication 1". But I tried and I cannot find any text config file on my system that would specify that this is the default, co I deduce it must have been included in compile time, which - to me - is very confusing. But maybe that is the debian way.
Have you looked at and read the things in /usr/share/doc/tor? Have you looked at the command line of the tor process? Have you looked at the init script?
Cheers,
On Thu, 04 Apr 2013 21:56:32 +0200, Peter Palfrader weasel@torproject.org wrote:
On Thu, 04 Apr 2013, Tomáš Hnyk wrote:
Thanks for that. I hope he might. I would understand if there were a line in my torrc stating saying "CookieAuthentication 1". But I tried and I cannot find any text config file on my system that would specify that this is the default, co I deduce it must have been included in compile time, which - to me - is very confusing. But maybe that is the debian way.
Have you looked at and read the things in /usr/share/doc/tor? Have you looked at the command line of the tor process? Have you looked at the init script?
Cheers,
Well, no, I ran `locate /tor` and did not see any docs but only because I forgot to `updatedb` first. So sorry for the noise.
(even though running "tor" does not say it read the file in question.) Tomas
On Thu, 04 Apr 2013, Tomáš Hnyk wrote:
(even though running "tor" does not say it read the file in question.)
Running "tor" doesn't.
The service-defaults-torrc file is only loaded if you start the service via the init script.
However, all tors, unless told otherwise, will read /etc/tor/torrc. I think it's a bug but when I last discussed this with upstream they didn't seem very interested in the issue.