Skip to content

useradd: undocumented /usr/etc/skel support #1312

@ldv-alt

Description

@ldv-alt

PR #591 introduced /usr/etc/skel support in useradd without any mentioning in the documentation whatsoever.
According to the implementation, useradd populates the home directory by merging contents of /etc/skel and /usr/etc/skel.
Also, unlike /etc/skel, /usr/etc/skel is being used regardless of -k/--skel option.

Why /usr/etc/skel support was implemented this way is unclear: commit 74c17c7 references a specification that doesn't exist, and the specification that does exist (https://uapi-group.org/specifications/specs/extension_image/) doesn't seem to be relevant.

Anyway, this undocumented feature creates uncertainty. We've got a linux-pam/linux-pam#920 against pam_mkhomedir to implement this undocumented feature in Linux-PAM, but I'm reluctant to do so because of the issues mentioned above.

Please clarify.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions