Delivery-Date: Wed, 12 Aug 2015 16:18:14 -0400
Return-Path: <tor-talk-bounces@lists.torproject.org>
X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on moria.seul.org
X-Spam-Level: 
X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL,
	DKIM_SIGNED,RCVD_IN_DNSWL_MED,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=ham
	version=3.3.1
X-Original-To: archiver@seul.org
Delivered-To: archiver@seul.org
Received: from eugeni.torproject.org (eugeni.torproject.org [38.229.72.13])
	(using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by khazad-dum.seul.org (Postfix) with ESMTPS id 6A67A1E033A;
	Wed, 12 Aug 2015 16:18:12 -0400 (EDT)
Received: from eugeni.torproject.org (localhost [127.0.0.1])
	by eugeni.torproject.org (Postfix) with ESMTP id 25CF720B0B;
	Wed, 12 Aug 2015 20:18:03 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by eugeni.torproject.org (Postfix) with ESMTP id 2AE3B362B9
 for <tor-talk@lists.torproject.org>; Wed, 12 Aug 2015 20:17:59 +0000 (UTC)
X-Virus-Scanned: Debian amavisd-new at 
Received: from eugeni.torproject.org ([127.0.0.1])
 by localhost (eugeni.torproject.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id QS9m0oQMQLcT for <tor-talk@lists.torproject.org>;
 Wed, 12 Aug 2015 20:17:59 +0000 (UTC)
Received: from perdizione.investici.org (perdizione.investici.org
 [IPv6:2001:41d0:2:33d0::19])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "smtp.autistici.org",
 Issuer "Autistici/Inventati Certification Authority" (not verified))
 by eugeni.torproject.org (Postfix) with ESMTPS id F20A0359E6
 for <tor-talk@lists.torproject.org>; Wed, 12 Aug 2015 20:17:57 +0000 (UTC)
X-Greylist: delayed 170918 seconds by postgrey-1.34 at eugeni;
 Wed, 12 Aug 2015 20:17:58 UTC
Received: from [94.23.50.208] (perdizione [94.23.50.208]) (Authenticated
 sender: shark@canaglie.org) by localhost (Postfix) with ESMTPSA id
 84ADC120F29
 for <tor-talk@lists.torproject.org>; Wed, 12 Aug 2015 20:17:53 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canaglie.org;
 s=stigmate; t=1439410673;
 bh=x0PAPamU+OoDRMfRG2WsDF20lQpDfHtfI7L/0VJinuM=;
 h=Date:From:To:Subject:References:In-Reply-To;
 b=otAAUMklWbRKYFLJ9qra8P+AjpewgxqUBysam0fjrzj3B/JYpLKcfXO7d5UioLJkN
 OGpR6aHEnO3Z9CJh9ywyQVbksxoY1FnO55KbGLos7DAE3f3TFknR0HwG/Caw7KGsN4
 SQl+rDJxBEfTTcIkVfYsE1vLVVbkxwJEtO2UhOio=
Message-ID: <55CBAA03.8090008@canaglie.org>
Date: Wed, 12 Aug 2015 20:18:11 +0000
From: MaQ <shark@canaglie.org>
MIME-Version: 1.0
To: tor-talk@lists.torproject.org
References: <mailman.390.1439336562.3050.tor-talk@lists.torproject.org>
In-Reply-To: <mailman.390.1439336562.3050.tor-talk@lists.torproject.org>
Subject: Re: [tor-talk] Problem with where hidden_services able to be
	placed/permissions.
X-BeenThere: tor-talk@lists.torproject.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: tor-talk@lists.torproject.org
List-Id: "all discussion about theory, design,
 and development of Onion Routing" <tor-talk.lists.torproject.org>
List-Unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=unsubscribe>
List-Archive: <http://lists.torproject.org/pipermail/tor-talk/>
List-Post: <mailto:tor-talk@lists.torproject.org>
List-Help: <mailto:tor-talk-request@lists.torproject.org?subject=help>
List-Subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk>, 
 <mailto:tor-talk-request@lists.torproject.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: tor-talk-bounces@lists.torproject.org
Sender: "tor-talk" <tor-talk-bounces@lists.torproject.org>

Yes, running Tor 0.2.6.10.'Do you see there files like
cached-microdesc-consensus, lock, state, etc.?' Files do exist in
/var/lib/tor. The pertinent torrc:

'HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80'

The '/var/lib/tor' by default is limited to root. I did some tests
deleting 'hidden_service' to regenerate new .onion addresses. All fine.

The normal 'user' of system can't access '/var/lib/tor'. I changed
permissions of folder. Tor wouldn't generate new hidden_services files
or connect. I created a new folder 'hidden_service' in user's
'/home/user/Documents' and changed torrc to
'/home/user/Documents/hidden_service'. Tor wouldn't generate new
hidden_services files or connect.

Changed everything back, back to normal... What I'm trying to do is have
a fresh OS, that when a new user starts for first time, a unique .onion
address is generated for them and it is easily displayed on a start
page, without them having to fish around in files or having to use
editor, terminal, etc.

(On another note, the tor lists has been the quickest response/most
helpful for a novice, that I've encountered. Thank you all.)

----------

Hi,

If you installed from deb.torproject.org I assume you are using Tor
0.2.6.10, correct? (run # tor --version to check this).

Please explain once again what you did, I don't exactly understand.
Have you restored a hidden service for which you had backups of
private_key and hostname files? Or did you leave Tor to create a new
hidden service? What do you mean by 'set-up a directory in user's
Documents folder'?

If you have installed via apt, your datadirectory should be
/var/lib/tor, unless you didn't change it by modifying torrc. Do you
see there files like cached-microdesc-consensus, lock, state, etc.?
Also, the username who should run Tor on your system is debian-tor.

Please provide more details and torrc entries.

On 8/10/2015 11:49 PM, MaQ wrote:
> I tried a couple of things.
>
> Gave complete permissions to user at
> /var/lib/tor/hidden_services/hostname recursively AND
>
> set-up a directory in user's Documents folder.
>
> In both instances Tor would not make a connection. Had to revert
> all settings back to only allowing files to be placed with root
> restrictions in /var/lib/tor/ (torrc was correctly set to best of
> knowledge in both instances).
>
> I'm using Debian, Tor was installed from apt repositories using
> instructions from torproject.org, with adding line to sources.list
> and keyring, etc.
>
> Need user to have access to hostname file.
>
> Did read something about differences in privileges depending if
> using apt or downloading tarball?
>
> What is solution?

tor-talk-request@lists.torproject.org:
> Re: [tor-talk] Problem with where hidden_services able to be
> 	placed/permissions.
-- 
tor-talk mailing list - tor-talk@lists.torproject.org
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk

