User story #3844
closedUser creation in user technique without useradd
Added by Olivier Mauras over 11 years ago. Updated over 2 years ago.
Description
There's 3 enhancements to the technique.
- Add an optional UID
- Add an optional default GID
- Force local user creation without useradd usage
A bit more details about the last point:
Sometimes a user account could exists on the network LDAP/NIS/etc... but you may need to have this account locally with a different ID for administration sake - LDAP/NIS down or such.
useradd cannot be used in this case as it will detect the network user account and will refuse creation, and technique will anyway detect that the user account exists.
I thus added a "Force local user creation" checkbox which when checked will create user using file editing - /etc/password, /etc/shadow, and homedir creation. No reporting on the homedir creation.
I tried to be the least intrusive as possible to not mess techniques other functions and from my testing, everything is correctly working.
I believe that it still requires thorough testing :)
Please find the pull request below:
The following changes since commit 448504f682d5c70a6d56bd78d3e4425de9338724:
userManagement: Duplicate 2.0 > 3.0 (2013-08-15 07:52:14 +0200)
are available in the git repository at:
http://git.coredumb.net/rudder-techniques/ master
for you to fetch changes up to 4101b4792cbb25900ebc241624a76b25d001f901:
userManagement: Fix ifvar detection (2013-08-15 13:46:48 +0200)
----------------------------------------------------------------
Coredumb (7):
userManagement: Add new options for setting user ID in metadata.xml
userManagement: Add options for setting user default group ID in metadata.xml
userManagement: Add option to force local user creation
userManagement: Add user home dir creation for locally forced users
userManagement: Fixing syntax
userManagement: Fix perms to match rudder cfengine_stdlib.cf FnCall
userManagement: Fix ifvar detection
techniques/systemSettings/userManagement/userManagement/3.0/metadata.xml | 39 +++++++++++++++++++++++++++++++++++++
techniques/systemSettings/userManagement/userManagement/3.0/userManagement.st | 97 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 136 insertions(+)
Updated by Olivier Mauras over 11 years ago
Ah... some more testing and some non expected behaviour found :) one more commit added.
Also added reporting for group setting
Updated by Vincent MEMBRÉ over 11 years ago
- Status changed from New to 13
- Assignee set to Vincent MEMBRÉ
Good job and many many thanks for your work coredumb!
I'll create a pull request from your repository.
Our development process is for a user story is:
- Create an user story issue describing the feature
- Create Implementation tickets, one for each subtask you need (they can be added later)
- Create a branch dedicated to this feature on your repository (basically we name them ust_UST#/implem_Implem#/a_Description_of_the_branch
- Once your job is done, we create a pull request based on this branch that can be reviewed and accepted.
That procedure should be documented in our website, I'll update it soon.
Updated by Vincent MEMBRÉ over 11 years ago
- Assignee changed from Vincent MEMBRÉ to Nicolas PERRON
Updated by Nicolas PERRON about 11 years ago
- Target version changed from 2.4.12 to 2.4.13
Updated by Vincent MEMBRÉ almost 11 years ago
- Target version changed from 2.4.13 to 2.6.11
Since version 2.4 is not maintained anymore, retargeting to branch 2.6
Updated by Dennis Cabooter almost 11 years ago
Please implement this soon. At the moment i really have a problem with the same user with different uids/gids. They can't use the same nfs share.
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.11 to 2.6.12
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.12 to 2.6.13
Updated by Vincent MEMBRÉ over 10 years ago
- Target version changed from 2.6.13 to 2.6.14
Updated by Jonathan CLARKE over 10 years ago
- Target version changed from 2.6.14 to 2.6.16
Updated by Jonathan CLARKE over 10 years ago
- Target version changed from 2.6.16 to 2.6.17
Updated by Nicolas PERRON over 10 years ago
- Target version changed from 2.6.17 to 2.6.18
Updated by Dennis Cabooter over 10 years ago
I really get in trouble with different uid/gid for the same user and share the same nfs mount. Today I had to correct uids and gids and permissions manually on 8 nodes, which is really annoying. And I noticed because users came to me to complain they have no access. Is there something I can help with or is there a reason why it's still not implemented?
Updated by François ARMAND about 10 years ago
- Status changed from 13 to 8
- Assignee deleted (
Nicolas PERRON)
Updated by Matthieu CERDA about 10 years ago
- Target version changed from 2.6.18 to 2.6.19
Updated by Vincent MEMBRÉ about 10 years ago
- Target version changed from 2.6.19 to 2.6.20
Updated by Benoît PECCATTE almost 10 years ago
- Tracker changed from User story to Bug
- Assignee set to Benoît PECCATTE
- Target version changed from 2.6.20 to 2.10.9
Updated by Benoît PECCATTE almost 10 years ago
- Tracker changed from Bug to User story
- Assignee deleted (
Benoît PECCATTE)
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.9 to 2.10.10
Updated by Vincent MEMBRÉ almost 10 years ago
- Target version changed from 2.10.10 to 2.10.11
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.11 to 2.10.12
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.12 to 2.10.13
Updated by François ARMAND over 9 years ago
- Related to Bug #6493: Missing "don't change" password hash type in userManagement added
Updated by François ARMAND over 9 years ago
- Assignee set to Benoît PECCATTE
Some more precision on that one: the "force local user accound creation" is the most important part.
The idea is to be able to force the addition of the user / uid / gid in /etc/passwd and /etc/shadow whatever useradd is telling.
The expected behaviour is to have the user added even if the given uid (or gid) exists. It is totally possible to have two differents users with the same uid, even if there would be several strange things happening - that's ok, it's an advanced feature, user will know how to deal with that. Perhaps it would be nice to have some kind of report for the case where the uid is already present (perhaps even an error, as long as the user is added - or pehaps it's an other check that all uids are different that should be always done).
The gid part just have to be done.
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.13 to 2.10.14
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.14 to 2.10.15
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.15 to 2.10.16
Updated by Vincent MEMBRÉ over 9 years ago
- Target version changed from 2.10.16 to 2.10.17
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.17 to 2.10.18
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.18 to 2.10.19
Updated by Vincent MEMBRÉ about 9 years ago
- Target version changed from 2.10.19 to 2.10.20
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.10.20 to 2.11.18
Updated by Vincent MEMBRÉ almost 9 years ago
- Target version changed from 2.11.18 to 2.11.19
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.19 to 2.11.20
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.20 to 2.11.21
Updated by François ARMAND over 8 years ago
- Translation missing: en.field_tag_list set to Sponsored
Updated by François ARMAND over 8 years ago
- Pull Request set to https://github.com/Normation/rudder-techniques/pull/166
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.21 to 2.11.22
Updated by François ARMAND over 8 years ago
I finded back the PR, which was not linked to the ticket.
I'm not sure of the state and the validity of the comments, but at least the code is here to be reviewed.
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.22 to 2.11.23
Updated by Nicolas CHARLES over 8 years ago
- Status changed from New to In progress
- Assignee changed from Benoît PECCATTE to Nicolas CHARLES
I'm taking over this ticket!
Updated by Nicolas CHARLES over 8 years ago
- Pull Request deleted (
https://github.com/Normation/rudder-techniques/pull/166)
Updated by Vincent MEMBRÉ over 8 years ago
- Target version changed from 2.11.23 to 2.11.24
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 2.11.24 to 308
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 308 to 3.1.14
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.14 to 3.1.15
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.15 to 3.1.16
Updated by Vincent MEMBRÉ about 8 years ago
- Target version changed from 3.1.16 to 3.1.17
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.17 to 3.1.18
Updated by Vincent MEMBRÉ almost 8 years ago
- Target version changed from 3.1.18 to 3.1.19
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.19 to 3.1.20
Updated by François ARMAND over 7 years ago
- Status changed from In progress to New
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.20 to 3.1.21
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.21 to 3.1.22
Updated by Vincent MEMBRÉ over 7 years ago
- Target version changed from 3.1.22 to 3.1.23
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.23 to 3.1.24
Updated by Vincent MEMBRÉ about 7 years ago
- Target version changed from 3.1.24 to 3.1.25
Updated by Benoît PECCATTE about 7 years ago
- Target version changed from 3.1.25 to 4.1.9
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.9 to 4.1.10
Updated by Vincent MEMBRÉ almost 7 years ago
- Target version changed from 4.1.10 to 4.1.11
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.11 to 4.1.12
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.12 to 4.1.13
Updated by Vincent MEMBRÉ over 6 years ago
- Target version changed from 4.1.13 to 4.1.14
Updated by Benoît PECCATTE over 6 years ago
- Target version changed from 4.1.14 to 4.1.15
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.15 to 4.1.16
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.16 to 4.1.17
Updated by Vincent MEMBRÉ about 6 years ago
- Target version changed from 4.1.17 to 4.1.18
Updated by Vincent MEMBRÉ almost 6 years ago
- Target version changed from 4.1.18 to 4.1.19
Updated by Alexis Mousset almost 6 years ago
- Target version changed from 4.1.19 to 4.1.20
Updated by Alexis Mousset over 5 years ago
- Target version changed from 4.1.20 to 588
Updated by Alexis Mousset over 5 years ago
- Subject changed from Technique enhancement proposal: userManagement with uid/gid and user creation without useradd to User creation in user technique without useradd
- Assignee deleted (
Nicolas CHARLES) - Target version changed from 588 to 5.0.13
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.13 to 5.0.14
Updated by Vincent MEMBRÉ about 5 years ago
- Target version changed from 5.0.14 to 5.0.15
Updated by Vincent MEMBRÉ almost 5 years ago
- Target version changed from 5.0.15 to 5.0.16
Updated by Alexis Mousset almost 5 years ago
- Target version changed from 5.0.16 to 5.0.17
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.17 to 5.0.18
Updated by Vincent MEMBRÉ over 4 years ago
- Target version changed from 5.0.18 to 5.0.19
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 5.0.19 to 5.0.20
Updated by Vincent MEMBRÉ about 4 years ago
- Target version changed from 5.0.20 to 797
Updated by Benoît PECCATTE over 3 years ago
- Target version changed from 797 to 6.1.14
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.14 to 6.1.15
Updated by Vincent MEMBRÉ over 3 years ago
- Target version changed from 6.1.15 to 6.1.16
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.16 to 6.1.17
Updated by Vincent MEMBRÉ about 3 years ago
- Target version changed from 6.1.17 to 6.1.18
Updated by Vincent MEMBRÉ almost 3 years ago
- Target version changed from 6.1.18 to 6.1.19
Updated by Alexis Mousset almost 3 years ago
This won’t be added to that technique, please use the technique editor for that. If you are missing some capabilities in it, please open a ticket for that need.
Updated by Alexis Mousset almost 3 years ago
- Status changed from New to Rejected