Project

General

Profile

Actions

User story #3844

open

User creation in user technique without useradd

Added by Olivier Mauras over 7 years ago. Updated 6 months ago.

Status:
New
Priority:
1
Assignee:
-
Category:
Techniques
Target version:
Suggestion strength:
User visibility:
Effort required:
Tags:

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(+)

Subtasks 1 (0 open1 closed)

User story #3846: Handle gid/uid at user creation (Technique usermanagement)ReleasedJonathan CLARKE2013-08-16Actions

Related issues

Related to Rudder - Bug #3596: Uids/gidsRejected2013-05-17Actions
Related to Rudder - Bug #6493: Missing "don't change" password hash type in userManagementReleasedJonathan CLARKE2016-02-25Actions
Actions #1

Updated by Olivier Mauras over 7 years ago

Ah... some more testing and some non expected behaviour found :) one more commit added.
Also added reporting for group setting

Actions #2

Updated by Vincent MEMBRÉ over 7 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.

Actions #3

Updated by Vincent MEMBRÉ over 7 years ago

  • Assignee changed from Vincent MEMBRÉ to Nicolas PERRON
Actions #4

Updated by Nicolas PERRON over 7 years ago

  • Target version set to 2.4.12
Actions #5

Updated by Nicolas PERRON over 7 years ago

  • Target version changed from 2.4.12 to 2.4.13
Actions #6

Updated by Vincent MEMBRÉ about 7 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

Actions #7

Updated by Dennis Cabooter about 7 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.

Actions #8

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 2.6.11 to 2.6.12
Actions #9

Updated by Vincent MEMBRÉ about 7 years ago

  • Target version changed from 2.6.12 to 2.6.13
Actions #10

Updated by Vincent MEMBRÉ almost 7 years ago

  • Target version changed from 2.6.13 to 2.6.14
Actions #11

Updated by Jonathan CLARKE almost 7 years ago

  • Target version changed from 2.6.14 to 2.6.16
Actions #12

Updated by Jonathan CLARKE almost 7 years ago

  • Target version changed from 2.6.16 to 2.6.17
Actions #13

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.6.17 to 2.6.18
Actions #14

Updated by Dennis Cabooter over 6 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?

Actions #15

Updated by François ARMAND over 6 years ago

  • Status changed from 13 to 8
  • Assignee deleted (Nicolas PERRON)
Actions #16

Updated by Matthieu CERDA over 6 years ago

  • Target version changed from 2.6.18 to 2.6.19
Actions #17

Updated by Vincent MEMBRÉ over 6 years ago

  • Target version changed from 2.6.19 to 2.6.20
Actions #18

Updated by Benoît PECCATTE over 6 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
Actions #19

Updated by Benoît PECCATTE over 6 years ago

  • Tracker changed from Bug to User story
  • Assignee deleted (Benoît PECCATTE)
Actions #20

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.10.9 to 2.10.10
Actions #21

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.10.10 to 2.10.11
Actions #22

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.10.11 to 2.10.12
Actions #23

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.10.12 to 2.10.13
Actions #24

Updated by Benoît PECCATTE about 6 years ago

  • Status changed from 8 to New
Actions #25

Updated by Olivier Mauras about 6 years ago

Bump on this one :)

Actions #26

Updated by François ARMAND about 6 years ago

  • Related to Bug #6493: Missing "don't change" password hash type in userManagement added
Actions #27

Updated by François ARMAND about 6 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.

Actions #28

Updated by Vincent MEMBRÉ about 6 years ago

  • Target version changed from 2.10.13 to 2.10.14
Actions #29

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.10.14 to 2.10.15
Actions #30

Updated by Vincent MEMBRÉ almost 6 years ago

  • Target version changed from 2.10.15 to 2.10.16
Actions #31

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.16 to 2.10.17
Actions #32

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.17 to 2.10.18
Actions #33

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.18 to 2.10.19
Actions #34

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.19 to 2.10.20
Actions #35

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.10.20 to 2.11.18
Actions #36

Updated by Vincent MEMBRÉ over 5 years ago

  • Target version changed from 2.11.18 to 2.11.19
Actions #37

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.19 to 2.11.20
Actions #38

Updated by Vincent MEMBRÉ about 5 years ago

  • Target version changed from 2.11.20 to 2.11.21
Actions #39

Updated by François ARMAND about 5 years ago

  • Tags set to Sponsored
Actions #40

Updated by François ARMAND almost 5 years ago

  • Pull Request set to https://github.com/Normation/rudder-techniques/pull/166
Actions #41

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 2.11.21 to 2.11.22
Actions #42

Updated by François ARMAND almost 5 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.

Actions #43

Updated by Vincent MEMBRÉ almost 5 years ago

  • Target version changed from 2.11.22 to 2.11.23
Actions #44

Updated by Nicolas CHARLES almost 5 years ago

  • Status changed from New to In progress
  • Assignee changed from Benoît PECCATTE to Nicolas CHARLES

I'm taking over this ticket!

Actions #45

Updated by Nicolas CHARLES almost 5 years ago

  • Pull Request deleted (https://github.com/Normation/rudder-techniques/pull/166)
Actions #46

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 2.11.23 to 2.11.24
Actions #47

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 2.11.24 to 308
Actions #48

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 308 to 3.1.14
Actions #49

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.1.14 to 3.1.15
Actions #50

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.1.15 to 3.1.16
Actions #51

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.1.16 to 3.1.17
Actions #52

Updated by Vincent MEMBRÉ over 4 years ago

  • Target version changed from 3.1.17 to 3.1.18
Actions #53

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 3.1.18 to 3.1.19
Actions #54

Updated by Vincent MEMBRÉ about 4 years ago

  • Target version changed from 3.1.19 to 3.1.20
Actions #55

Updated by François ARMAND almost 4 years ago

  • Status changed from In progress to New
Actions #56

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 3.1.20 to 3.1.21
Actions #57

Updated by Vincent MEMBRÉ almost 4 years ago

  • Target version changed from 3.1.21 to 3.1.22
Actions #58

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 3.1.22 to 3.1.23
Actions #59

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 3.1.23 to 3.1.24
Actions #60

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 3.1.24 to 3.1.25
Actions #61

Updated by Benoît PECCATTE over 3 years ago

  • Target version changed from 3.1.25 to 4.1.9
Actions #62

Updated by Vincent MEMBRÉ over 3 years ago

  • Target version changed from 4.1.9 to 4.1.10
Actions #63

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 4.1.10 to 4.1.11
Actions #64

Updated by Vincent MEMBRÉ about 3 years ago

  • Target version changed from 4.1.11 to 4.1.12
Actions #65

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 4.1.12 to 4.1.13
Actions #66

Updated by Vincent MEMBRÉ almost 3 years ago

  • Target version changed from 4.1.13 to 4.1.14
Actions #67

Updated by Benoît PECCATTE over 2 years ago

  • Target version changed from 4.1.14 to 4.1.15
Actions #68

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 4.1.15 to 4.1.16
Actions #69

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 4.1.16 to 4.1.17
Actions #70

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 4.1.17 to 4.1.18
Actions #71

Updated by Vincent MEMBRÉ over 2 years ago

  • Target version changed from 4.1.18 to 4.1.19
Actions #72

Updated by Alexis MOUSSET about 2 years ago

  • Target version changed from 4.1.19 to 4.1.20
Actions #73

Updated by Alexis MOUSSET almost 2 years ago

  • Target version changed from 4.1.20 to 588
Actions #74

Updated by Alexis MOUSSET almost 2 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
Actions #75

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 5.0.13 to 5.0.14
Actions #76

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 5.0.14 to 5.0.15
Actions #77

Updated by Vincent MEMBRÉ over 1 year ago

  • Target version changed from 5.0.15 to 5.0.16
Actions #78

Updated by Alexis MOUSSET about 1 year ago

  • Target version changed from 5.0.16 to 5.0.17
Actions #79

Updated by Vincent MEMBRÉ about 1 year ago

  • Target version changed from 5.0.17 to 5.0.18
Actions #80

Updated by Vincent MEMBRÉ 9 months ago

  • Target version changed from 5.0.18 to 5.0.19
Actions #81

Updated by Vincent MEMBRÉ 8 months ago

  • Target version changed from 5.0.19 to 5.0.20
Actions #82

Updated by Vincent MEMBRÉ 6 months ago

  • Target version changed from 5.0.20 to 5.0.21
Actions

Also available in: Atom PDF