d2edf1d435
* Create a user home directory if it has parents that do not exist The useradd command line tool does not create parent directories. Check if the specified home path has parents that do not exist. If so, create them prior to running useradd, then set the proper permission on the created directory. Add tests Signed-off-by: Sam Doran <sdoran@redhat.com> * Use dict for default user group in tests Signed-off-by: Sam Doran <sdoran@redhat.com> * Fix tests Signed-off-by: Sam Doran <sdoran@redhat.com>
13 lines
274 B
YAML
13 lines
274 B
YAML
user_home_prefix:
|
|
Linux: '/home'
|
|
FreeBSD: '/home'
|
|
SunOS: '/home'
|
|
Darwin: '/Users'
|
|
|
|
status_command:
|
|
OpenBSD: "grep ansibulluser /etc/master.passwd | cut -d ':' -f 2"
|
|
FreeBSD: 'pw user show ansibulluser'
|
|
|
|
default_user_group:
|
|
openSUSE Leap: users
|
|
MacOSX: admin
|