Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix of some problems with user modification with skeleton informations under FreeBSD #34694

Merged
merged 2 commits into from Apr 13, 2018

Conversation

abelbabel
Copy link
Contributor

SUMMARY

FreeBSD handles skeleton files somehow different than other OSs. Skeleton files in /etc/skel/ are prefixed with "dot". When adding or modifying a user with pw and argument -m files from the skeleton directory will be copied to the home directory of the user and the "dot" prefix will be removed. Ansible's own create_homedir() function only copies the skeleton files without renaming them properly under FreeBSD.

With this patch/bug fix the home directory of an existing user without existing home directory will be created properly under FreeBSD by using FreeBSD's own functions.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

user

ANSIBLE VERSION
devel

@ansibot
Copy link
Contributor

ansibot commented Jan 10, 2018

cc @sfromm
click here for bot help

@ansibot ansibot added affects_2.5 This issue/PR affects Ansible v2.5 bugfix_pull_request core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. needs_triage Needs a first human triage before being processed. support:core This issue/PR relates to code supported by the Ansible Engineering Team. labels Jan 10, 2018
@jborean93 jborean93 removed the needs_triage Needs a first human triage before being processed. label Jan 11, 2018
@ansibot ansibot added the stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. label Jan 19, 2018
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bugfix_pull_request labels Mar 2, 2018
@bcoca bcoca merged commit c1e4ef3 into ansible:devel Apr 13, 2018
ilicmilan pushed a commit to ilicmilan/ansible that referenced this pull request Nov 7, 2018
…s under FreeBSD (ansible#34694)

* respect skeleton argument in usermod mode for FreeBSD

* use FreeBSD's own (more sophisticated) home creation function rather than ansible's create_home(), which does not handle skeleton files correctly for FreeBSD
@ansible ansible locked and limited conversation to collaborators Apr 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
affects_2.5 This issue/PR affects Ansible v2.5 bug This issue/PR relates to a bug. core_review In order to be merged, this PR must follow the core review workflow. module This issue/PR relates to a module. stale_ci This PR has been tested by CI more than one week ago. Close and re-open this PR to get it retested. support:core This issue/PR relates to code supported by the Ansible Engineering Team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants