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

Bad group when creating user home #104

Open
eleanorcuallado opened this issue Jul 13, 2021 · 0 comments
Open

Bad group when creating user home #104

eleanorcuallado opened this issue Jul 13, 2021 · 0 comments

Comments

@eleanorcuallado
Copy link

We are using the accounts 1.5.3 version with RHEL 7/8 (puppet 6), and found out that when creating a user with a custom group, the initial initializing of the home folder will be done before the user is added to said group, and so the initial files are created with a dummy group.

MicrosoftTeams-image (4)
In this example, the nolio user was created with a custom nolio group with a custom gid, and while part of the files are created with the nolio file, the initial home files (the shell stuff) are created with the initial dummy group 12002.

I looked around in the code, and it would seem that since creating the group requires the users to be done, the home folder will have been created first (or at least part of it) and so the wrong group is assigned to it.

I suppose fixing it would require either creating the groups first and then assign the users, or making sure to chown the whole folder to the primary group (though the later might prove complex depending on the other puppet classes applied)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant