unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Leo Famulari <leo@famulari.name>
Cc: 24275@debbugs.gnu.org, John Darrington <john@darrington.wattle.id.au>
Subject: bug#24275: Misnamed directory in GuixSD
Date: Mon, 22 Aug 2016 11:21:42 +0300	[thread overview]
Message-ID: <87bn0lciy1.fsf@gmail.com> (raw)
In-Reply-To: <20160821231410.GA4548@jasmine> (Leo Famulari's message of "Sun, 21 Aug 2016 19:14:10 -0400")

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

  reply	other threads:[~2016-08-22  8:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20 20:11 bug#24275: Misnamed directory in GuixSD John Darrington
2016-08-21 23:14 ` Leo Famulari
2016-08-22  8:21   ` Alex Kost [this message]
2016-08-22  8:47     ` Vincent Legoll
2016-08-22 18:09       ` Leo Famulari
2016-08-23 11:04         ` Vincent Legoll
2016-08-27 23:32           ` Ludovic Courtès
2016-08-27 23:49             ` Vincent Legoll
2016-08-28 13:48               ` Ludovic Courtès
2016-08-28 14:44                 ` Vincent Legoll
2016-08-29  8:04                   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bn0lciy1.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=24275@debbugs.gnu.org \
    --cc=john@darrington.wattle.id.au \
    --cc=leo@famulari.name \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).