From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: dmd: running as non-root user Date: Fri, 24 Jan 2014 22:29:56 +0100 Message-ID: <87vbx9xe3v.fsf@gnu.org> References: <874n4t2szv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6oP4-0001iS-K0 for guix-devel@gnu.org; Fri, 24 Jan 2014 16:35:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6oOx-00072i-AP for guix-devel@gnu.org; Fri, 24 Jan 2014 16:35:06 -0500 Received: from hera.aquilenet.fr ([141.255.128.1]:42540) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6oOx-00072b-2m for guix-devel@gnu.org; Fri, 24 Jan 2014 16:34:59 -0500 In-Reply-To: <874n4t2szv.fsf@gmail.com> (Alex Sassmannshausen's message of "Fri, 24 Jan 2014 18:24:04 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Sassmannshausen Cc: guix-devel@gnu.org Alex Sassmannshausen skribis: > Running dmd as a non-privileged user currently results in (by default): > - log: ~/.dmd.log > - config: ~/.dmdconf.scm > - an attempt being made to create a socket at > $LOCALSTATEDIRE/var/run/dmd/socket, which fails because poor muggins > has no write permissions there (from what I can tell). > > I would propose changing the above, Emacs stylee, so that we get the > following by default: > - log: ~/.dmd/dmd.log > - config: ~/.dmd/init.scm (or dmdconf.scm if preferred, though init is > probably better known to people familiar with emacs.) > - socket: ~/.dmd/socket That makes sense, yes. (I realized I=E2=80=99m running dmd unprivileged with --prefix=3D$HOME/foo,= so it had no problem with the socket directory. But that=E2=80=99s definitely no= t the common case.) [...] > I think that would make it a more useful tool for managing your own > daemons, and it would also become more newbie friendly. Agreed. > I'm happy to implement the above, or whatever comes out of this > discussion. > > What do you think? I think it=E2=80=99s a good idea! :-) The relevant bits are in support.sc= m. Thanks, Ludo=E2=80=99.