Project

General

Profile

Actions

User story #3844

closed

User creation in user technique without useradd

Added by Olivier Mauras over 10 years ago. Updated almost 2 years ago.

Status:
Rejected
Priority:
1
Assignee:
-
Category:
Techniques
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

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 2 (0 open2 closed)

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

Also available in: Atom PDF