Date: Wed, 26 Nov 2008 08:56:16 -0200 From: Renato Botelho <garga@FreeBSD.org> To: Martin Wilke <miwi@FreeBSD.org> Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/security/tor Makefile distinfo Message-ID: <20081126105615.GD2299@bluepex.com> In-Reply-To: <20081125181327.GI38586@bsdcrew.de> References: <200811221701.mAMH1p6S064360@repoman.freebsd.org> <20081125131153.GC2299@bluepex.com> <20081125181327.GI38586@bsdcrew.de>
next in thread | previous in thread | raw e-mail | index | archive | help
-----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 <garga @ FreeBSD.org> <garga @ freebsdbrasil.com.br> 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-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081126105615.GD2299>