From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Sassmannshausen Subject: dmd: running as non-root user Date: Fri, 24 Jan 2014 18:24:04 +0100 Message-ID: <874n4t2szv.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6kUN-0002Yh-5w for guix-devel@gnu.org; Fri, 24 Jan 2014 12:24:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W6kUE-0007qi-Oo for guix-devel@gnu.org; Fri, 24 Jan 2014 12:24:19 -0500 Received: from mail-ea0-x22f.google.com ([2a00:1450:4013:c01::22f]:64377) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W6kUE-0007pq-JG for guix-devel@gnu.org; Fri, 24 Jan 2014 12:24:10 -0500 Received: by mail-ea0-f175.google.com with SMTP id z10so1115274ead.20 for ; Fri, 24 Jan 2014 09:24:07 -0800 (PST) Received: from user-ThinkPad-X60 ([91.178.3.100]) by mx.google.com with ESMTPSA id 46sm5882135ees.4.2014.01.24.09.24.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Jan 2014 09:24:06 -0800 (PST) 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: guix-devel@gnu.org Hello, On the back of me looking at the manual and my resulting playing with dmd (which is a pretty cool program by the way), I've come across the following: 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 Then, when a newbie starts playing with dmd we can simply point them to that one directory for exploration in the manual. We can also then move to dmd checking for the existence of the folder and creating files as necessary, and changing the permissions of the .dmd folder so dmd itself considers it secure (if dmd created the folder: if it already existed, then do what it does now and simply emit an 'insecure' warning). Instead of, when running as non-root, having to do $ dmd -s ~/.dmd/socket to start dmd and then $ deco ACTION SERVICE -s ~/.dmd/socket for every deco command we could simply do $ dmd and $ deco ACTION SERVICE I think that would make it a more useful tool for managing your own daemons, and it would also become more newbie friendly. I'm happy to implement the above, or whatever comes out of this discussion. What do you think? Best wishes, Alex