Package: passwd
Version: 1:4.17.4-1
Severity: normal
Tags: patch
Dear Maintainer,
In useradd(8), we have the following:
-d, --home-dir HOME_DIR
The new user will be created using HOME_DIR as the value for the user's login directory. The default is to append the LOGIN name to BASE_DIR and use that
as the login directory name. If the directory HOME_DIR does not exist, then it will be created unless the -M option is specified.
The last sentence says HOME_DIR will be created, but it is not. Looking further,
it appears the reason is because CREATE_HOME does not exist in /etc/login.defs
I've attached a patch to remove the last sentence of above description.
On Fri, 2025-04-18 at 17:31 +0200, Chris Hofstaedtler wrote:
If, as you say, this is configurable in /etc/login.defs, then: IMO
it would be better to send a patch describing the configurable
behaviour, and sending that upstream.
Do you know offhand if CREATE_HOME not being in /etc/login.defs is
debian specific? (so upstream doesn't bounce it back)
(the patch appears to be missing)
If, as you say, this is configurable in /etc/login.defs, then: IMO
it would be better to send a patch describing the configurable
behaviour, and sending that upstream.
For option -M, there is already some text about CREATE_HOME.
I guess it was an overseen that -d would also need some text.
IOW: CREATE_HOME is _off_ by default upstream. This appears to be unchanged since 4.1.2.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 482 |
Nodes: | 16 (2 / 14) |
Uptime: | 63:10:57 |
Calls: | 9,569 |
Files: | 13,663 |
Messages: | 6,143,629 |