From mboxrd@z Thu Jan 1 00:00:00 1970 From: Georgi Kirilov Subject: Re: A postinst equivalent in Guix? Date: Wed, 25 Jan 2017 16:54:14 +0200 Message-ID: <20170125145335.e5hij7hcs3iau4tm@gmail.com> References: <20170125134241.GA25335@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47721) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cWOxz-0004q3-Ir for guix-devel@gnu.org; Wed, 25 Jan 2017 09:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cWOxy-0001IW-Oy for guix-devel@gnu.org; Wed, 25 Jan 2017 09:54:31 -0500 Content-Disposition: inline In-Reply-To: <20170125134241.GA25335@jocasta.intra> <87h94o3ryj.fsf@dustycloud.org> <87vat6xgow.fsf@gnu.org> 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" To: Ludovic =?iso-8859-1?Q?Court=E8s?= , Christopher Allan Webber , John Darrington Cc: guix-devel@gnu.org On Mon, Jan 23, 2017 at 10:34:55AM +0100, Ludovic Courtès wrote: >As for /var/lib/bsdgames, then it’s up to the admin to set the right >permissions on it. We can ensure that it exists and has the right >permissions on GuixSD, but on foreign distros, there’s nothing we can >do. Yep, I think making it work in GuixSD is enough :) Other distros have their own package. I tried adding a gnu/services/games.scm and mimicking what the other services did, but I don't even know how to trigger the code. I would appreciate any help. On Wed, Jan 25, 2017 at 02:42:41PM +0100, John Darrington wrote: >I always thought the unix way was rather nice. The scores file was owned by >"games" and programs which wanted to write to them were setuid games. > >That way everyone on the system shares the same scores file. Yes, some of these games maintain and query a system-wide top scores list so users can try to beat each other's top scores. On Tue, Jan 24, 2017 at 06:26:28PM -0600, Christopher Allan Webber wrote: >I'm a bit wary about GuixSD packages declaring being able to write to >/var/ anything by default. What would the permissions be? I guess if >it were world-writable to all "users" group users it would be okayish. This is exactly how this package does it - it installs initial, empty score files and chgrp's them to 'users'.