Kylo 0.83 Documentation: useradd command is missing the desired umask parameter

Description

In Kylo documentation 0.83, page "CREATE SERVICE ACCOUNT": http://kylo.readthedocs.io/en/v0.8.3/installation/CreateServiceAccounts.html

The command provided to create a new users are:

useradd -U -r -m -s /bin/bash nifi && useradd -U -r -m -s /bin/bash kylo && useradd -U -r -m -s /bin/bash activemq

or

useradd -U -r -m -s /bin/bash nifi
useradd -U -r -m -s /bin/bash kylo
useradd -U -r -m -s /bin/bash activemq

However, we should not expect UMASK is always set in /etc/default/useradd, my understanding is this parameter is deprecated in the /etc/default/useradd setting, so it is likely this is no longer there.

In this case, when UMASK is not set in /etc/default/useradd, the following will be returned:

cdh59e1:~ # useradd -U -r -m -s /bin/bash nifi && useradd -U -r -m -s /bin/bash kylo && useradd -U -r -m -s /bin/bash activemq
useradd: Invalid numeric argument `-r' for `-U'.
cdh59e1:~ # useradd -U -r -m -s /bin/bash nifi
useradd: Invalid numeric argument `-r' for `-U'.
...

We need to manually specify the umask value for the above command to work:

i.e:

useradd -U 0022 -r -m -s /bin/bash nifi

The -U parameter is not being specified as per 0.82 documentation anyway ...

Thanks.

Regards,
LG

Environment

SLES 11 SP3
Kylo 0.83
Teradata Hadoop Appliance 6

Activity

Show:
Jeremy Merrifield
December 4, 2017, 10:23 PM

I removed the -U option to make it like it was before

Done

Assignee

Jeremy Merrifield

Reporter

Lip Gee Tan

Labels

None

Reviewer

None

Story point estimate

None

Components

Sprint

None

Fix versions

Priority

Medium
Configure