Clarify documentation regarding creation of homedir#1523
Clarify documentation regarding creation of homedir#1523septatrix wants to merge 1 commit intoshadow-maint:masterfrom
Conversation
The "for non-system users" only applies to the CREATE_HOME config and is does not matter when using the `-m` flag.
|
I desired I can add a Signed-Off tag tomorrow, I just did this quickly via the GH web UI as I'm calling it a day right now. |
ikerexxe
left a comment
There was a problem hiding this comment.
While this is an improvement the text is still quite confusing. I'd propose to make a complete rewrite of this section to clarify the beaviour by separating it by user type.
My proposal would be the following:
Home directory creation behavior:
The directory HOME_DIR is not created by default. Whether it gets created depends on the user type and command-line options:
- For regular users: the home directory will be created if either the -m flag is specified or if CREATE_HOME is set to yes in /etc/login.defs.
- For system users (created with -r): the home directory will only be created if the -m flag is explicitly specified, regardless of the CREATE_HOME setting.
- Override: the -M flag prevents home directory creation in all cases, overriding any other settings.
Feel free to reword or improve anything as it might contain errors.
| <option>-m</option> flag is specified or | ||
| <replaceable>CREATE_HOME</replaceable> in | ||
| <filename>login.defs</filename> is set to true. However, it will never | ||
| default. It will only be created if the <option>-m</option> flag |
There was a problem hiding this comment.
The right amount of spaces after period is two. Please don't break that.
https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/tree/CONTRIBUTING.d/patches/description#n41
https://web.archive.org/web/20171217060354/http://www.heracliteanriver.com/?p=324
I have some wording tweaks for the following suggested text:
|
The "for non-system users" only applies to the CREATE_HOME config and is does not matter when using the
-mflag.Fixes #1522.