From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: bug#24275: Misnamed directory in GuixSD Date: Mon, 22 Aug 2016 11:21:42 +0300 Message-ID: <87bn0lciy1.fsf@gmail.com> References: <20160820201100.GA22429@jocasta.intra> <20160821231410.GA4548@jasmine> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbkUg-0002h3-Fr for bug-guix@gnu.org; Mon, 22 Aug 2016 04:22:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbkUc-0001V5-5X for bug-guix@gnu.org; Mon, 22 Aug 2016 04:22:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:38747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbkUc-0001V1-2J for bug-guix@gnu.org; Mon, 22 Aug 2016 04:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bbkUb-00086u-Qx for bug-guix@gnu.org; Mon, 22 Aug 2016 04:22:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160821231410.GA4548@jasmine> (Leo Famulari's message of "Sun, 21 Aug 2016 19:14:10 -0400") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Leo Famulari Cc: 24275@debbugs.gnu.org, John Darrington Leo Famulari (2016-08-22 02:14 +0300) wrote: > On Sat, Aug 20, 2016 at 10:11:00PM +0200, John Darrington wrote: >> Installing GuixSD 0.11.0 creates a directory called /nonexistent >> Despite its name, it does actually exist. > > I checked, and it's the 'nobody' user's home directory: > http://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/shadow.scm#n125 > >> I suggest that we rename it or delete it. > > I think it's very appropriate for nobody to live in a nonexistent > directory ;) > > But, I noticed that the directory doesn't exist on my GuixSD system, > which has been reconfigured since the commit that introduced this > directory (2d94702ff). My nobody is still using '/var/empty'. The same for me. > I wonder if that's a problem? IIUC it happens because the home directory is created only when a user is added, and is not changed when the user is modified. See (gnu build activation) module: - 'add-user' runs "useradd" with "-d" option to create home dir - 'modify-user' runs "usermod" without "-d" (and without "--move-home") So the home of nobody was not changed for us to '/nonexistent' when the nobody user was changed. As for me, I wouldn't like to have this directory, and I think it shouldn't be created (if it is not really needed for nobody user). -- Alex