bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#24275: Misnamed directory in GuixSD


From: Vincent Legoll
Subject: bug#24275: Misnamed directory in GuixSD
Date: Mon, 22 Aug 2016 10:47:51 +0200

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...

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.

-- 
Vincent Legoll





reply via email to

[Prev in Thread] Current Thread [Next in Thread]