Project

General

Profile

Actions

Bug #2549

closed

(ex PT/ Technique) User Management: It's possible to create a Directive without home defined for a user.

Added by Nicolas PERRON almost 12 years ago. Updated about 9 years ago.

Status:
Released
Priority:
3
Category:
Techniques
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

No check avoid to define a user without home.

If "Use the default home directory:" is set to false, it's possible to let empty "Home directory, if not default (optional):"

Nevertheless, the promise will not be able to create the user:

[root@centos-6-64 ~]# /var/rudder/cfengine-community/bin/cf-agent -KI -b check_usergroup_user_parameters
 !! Duplicate selection of value for variable "execRun" in scope g
 !! Rule from /var/rudder/cfengine-community/inputs/common/1.0/site.cf at/before line 58
 >> Using command line specified bundlesequence
 -> Executing '/usr/sbin/useradd -m  -s /bin/bash -d $(usergroup_user_home[1]) userQA2' ...(timeout=-678,owner=-1,group=-1)
 !! Finished command related to promiser "/usr/sbin/useradd" -- an error occurred (returned 3)
Q: "...in/useradd -m  ": useradd: invalid home directory '$(usergroup_user_home[1])'
I: Last 1 quoted lines were generated by promiser "/usr/sbin/useradd -m  -s /bin/bash -d $(usergroup_user_home[1]) userQA2" 
 -> Completed execution of /usr/sbin/useradd -m  -s /bin/bash -d $(usergroup_user_home[1]) userQA2
R: @@userGroupManagement@@result_error@@50d28030-4e21-4c47-8b9b-fe0c4b39e405@@b887d02f-12ea-4dc9-96d5-563fc4b5bfbc@@9@@Users@@userQA2@@2012-06-07 16:26:38+02:00##06da3556-5204-4bd7-b3b0-fa5e7bcfbbea@#The user userQA2 ( Without any defined full name ) could not be added to the system
[root@centos-6-64 ~]#
Actions

Also available in: Atom PDF