Recently discovered Clear Linux only allows lower case letter
as part of a login name. Updated validation check and error message.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
If any accounts are added and set to have Admin privileges
via sudo, then disable the root account by locking it.
Also lock the root account if SSH Keys are set, but no password.
Added checking if the account exists (system accounts like root)
to use usermod not useradd. Also use getent to find the user's
home directory and not assume /home (not true for root).
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Fixes#209
To ensure we are using the proper libraries, first chroot and
then run the useradd and chpasswd commands instead of relying
upon the --root option.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Be consistent with ister_gui and only add the sysadmin-basic
bundle when non-root users are added. Previous we were always
adding the sudo bundle.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
Don't try to change the user's password if the password is not set.
It's useful for systems for remote access only where the ssh-keys
are just enough - and no password required.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
Add the user's ssh-keys configuration support as well as the required
bits to creathe the authorized_keys file.
Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
When the default logging is set to Info, have a baseline of
the installation steps logged.
Add additional testing to storage to ensure metrics do not slip.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
This is code is still alpha. The Text-based User Interface is
undergoing a resign of the layout before beta.
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>