all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Vincent Legoll <vincent.legoll@gmail.com>
Cc: Alex Kost <alezost@gmail.com>,
	24275@debbugs.gnu.org,
	John Darrington <john@darrington.wattle.id.au>
Subject: bug#24275: Misnamed directory in GuixSD
Date: Mon, 22 Aug 2016 14:09:03 -0400	[thread overview]
Message-ID: <20160822180903.GB17367@jasmine> (raw)
In-Reply-To: <CAEwRq=pGz-7MX9j=zZ9Z_RMbgyvVZtDS-DROZ-3OwanfFK_SoQ@mail.gmail.com>

On Mon, Aug 22, 2016 at 10:47:51AM +0200, Vincent Legoll wrote:
> Hello,
> 
> > 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
> 
> Maybe the nobody user should be special cased, not to run useradd with
> -d, the non existent directory, should really not exist for nobody. This is a
> (very small ?) security enhancement, I think...

My Debian system uses '/nonexistent' for the nobody user's passwd entry,
but the directory does not actually exist.

> If this is the way to go, I can have a shot at it...
> 
> > - '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).
> 
> Ditto.

I don't fully understand the implications of the change, but it seems
like a worthwhile thing to try doing. At least you might learn something
while implementing it :)

I'll let more experienced people decide if it's the right thing to do.

  reply	other threads:[~2016-08-22 18:10 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
2016-08-22  8:47     ` Vincent Legoll
2016-08-22 18:09       ` Leo Famulari [this message]
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

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

  git send-email \
    --in-reply-to=20160822180903.GB17367@jasmine \
    --to=leo@famulari.name \
    --cc=24275@debbugs.gnu.org \
    --cc=alezost@gmail.com \
    --cc=john@darrington.wattle.id.au \
    --cc=vincent.legoll@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.