From owner-cvs-ports@FreeBSD.ORG Wed Nov 26 10:56:17 2008 Return-Path: Delivered-To: cvs-ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B71521065679 for ; Wed, 26 Nov 2008 10:56:17 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from capeta.freebsdbrasil.com.br (capeta.freebsdbrasil.com.br [201.48.151.3]) by mx1.freebsd.org (Postfix) with SMTP id DBEFB8FC27 for ; Wed, 26 Nov 2008 10:56:16 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: (qmail 12912 invoked from network); 26 Nov 2008 08:56:14 -0200 Received: by simscan 1.1.0 ppid: 12886, pid: 12895, t: 1.5617s scanners: clamav: 0.91.1/m: spam: 3.1.1 X-Spam-Checker-Version: SpamAssassin: -last, FreeBSD Brasil LTDA rulesets: Yes X-Spam-Status: No, hits=-1.9 required=3.7 Received: from unknown (HELO botelhor.bluepex.com) (garga@189.19.84.134) by capeta.freebsdbrasil.com.br with SMTP; 26 Nov 2008 08:56:13 -0200 Received: (qmail 35599 invoked by uid 1001); 26 Nov 2008 08:56:16 -0200 Date: Wed, 26 Nov 2008 08:56:16 -0200 From: Renato Botelho To: Martin Wilke Message-ID: <20081126105615.GD2299@bluepex.com> References: <200811221701.mAMH1p6S064360@repoman.freebsd.org> <20081125131153.GC2299@bluepex.com> <20081125181327.GI38586@bsdcrew.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <20081125181327.GI38586@bsdcrew.de> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/security/tor Makefile distinfo X-BeenThere: cvs-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2008 10:56:17 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, Nov 25, 2008 at 07:13:28PM +0100, Martin Wilke wrote: > On Tue, Nov 25, 2008 at 11:11:53AM -0200, Renato Botelho wrote: > > On Sat, Nov 22, 2008 at 05:01:51PM +0000, Martin Wilke wrote: > > > miwi 2008-11-22 17:01:51 UTC > > > > > > FreeBSD ports repository > > > > > > Modified files: > > > security/tor Makefile distinfo > > > Log: > > > - Update to 0.2.0.32 > > > > Tor startup script stopped working after this update, I research a little > > and found the problem. > > > > There is a tor_user variable in script, and when it exists, rc execute a "su > > -m $user", and tor exit saying if you sed a --User param you need to start > > tor with root user. > > > > I fixed it renaming tor_user var to tor_username, don't know if it's best > > solution. > > Fixed now, thanks. Not sure, root@botelhor:/usr/ports/textproc/linux-scim-gtk# /usr/local/etc/rc.d/tor start Starting tor. Nov 26 08:52:36.301 [notice] Tor v0.2.0.32 (r17346). This is experimental software. Do not rely on it for strong anonymity. (Running on FreeBSD i386) Nov 26 08:52:36.313 [notice] Initialized libevent version 1.4.8-stable using method kqueue. Good. Nov 26 08:52:36.316 [notice] Opening Socks listener on 127.0.0.1:9050 Nov 26 08:52:36.321 [warn] Error setting groups to gid 256: "Operation not permitted". If you set the "User" option, you must start Tor as root. Nov 26 08:52:36.323 [warn] Failed to parse/validate config: Problem with User value. See logs for details. Nov 26 08:52:36.325 [err] Reading config failed--see warnings above. /usr/local/etc/rc.d/tor: WARNING: failed to start tor As i've mentioned before, the problem is not about --Group param, the problem is when you have --User param, you need to start tor as root, but, when you have a "${rcname}_user" var defined, rc start the program as ${user}, using su -m, like you can see: + su -m _tor -c sh -c "/usr/local/bin/tor -f /usr/local/etc/tor/torrc --PidFile /var/run/tor/tor.pid --RunAsDaemon 1 --DataDirectory /var/db/tor --User _tor --Log notice\ file\ /var/log/tor" - -- Renato Botelho GnuPG Key: http://www.FreeBSD.org/~garga/pubkey.asc Money doesn't talk, it swears. -- Bob Dylan -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkktK08ACgkQ6CRbiSJE7akp8wCfUwK/tR6I0JusPL/6aqUUBzKK NE0An2wwBsBWyGAjdbaBn4AuKhU+t711 =riOW -----END PGP SIGNATURE-----