12 Commits
Author SHA1 Message Date
Mark D Horn 4558907500 encrypt: Switch to native golang code
Drop the C code and replace with native go code using
whitelisted vendor package.

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2019-05-08 13:31:49 -07:00
Mark D Horn 3b284e0865 user: Only allow lower case letter for login
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>
2019-05-06 13:28:39 -07:00
Reagan Lopez 281449eb17 gui: Applies localization to additional strings
Signed-off-by: Reagan Lopez <reagan.lopez@intel.com>
2019-04-23 18:52:18 -07:00
Mark D Horn d7c04bba06 Disable the root account if Admin set
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>
2019-02-14 16:59:43 -08:00
Mark D Horn ee86c38d25 Chroot first, then run useradd
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>
2019-02-05 09:01:42 -08:00
Mark D Horn fa4d2e1198 Set limit for password length
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-26 16:12:22 -07:00
Mark D Horn fec570770e Add bundle only when non-root users defined
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>
2018-10-26 09:29:14 -07:00
Leandro Dorileo 02be437d40 user: check for user password
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>
2018-10-17 12:36:56 -07:00
Leandro Dorileo 82beb2e89b user: add ssh-keys configuration
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>
2018-10-17 12:36:56 -07:00
Mark D Horn f6e0b2ba63 Add Install Steps as Info log messages
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>
2018-10-16 16:47:50 -07:00
Mark D Horn 85705c3783 tui: Improve User account data entry
Fixes #28

Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
2018-10-09 16:37:41 -07:00
Mark D Horn e84bb0e403 First Open Source push of code base
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>
2018-08-13 14:14:30 -07:00