How to Add Users to NodeGrid

How to Add Users to NodeGrid

Adding new users via WebUI

  1. Log in as admin to the NodeGrid WebUI
  2. Click on Local Accounts
  3. A list of all users will be displayed on the User Names screen;
  4. Click on Add and the Local User Information screen will be displayed;
  5. Type a new user name and password and then confirm it;
  6. Optionally, check the Hash Format Password checkbox; (see Note below about Hash Format Password)
  7. Enter Account Expiration Date (optional);
  8. Optionally, check the Require password change at login time checkbox;
  9. To add the user to an available user group, just choose the group name from the box on the left and then click Add. To remove a user group from the box, just select it and click Remove;
  10. Click Save.


Hash Format Password

In case of scripts, admin users prefer to use password in hash format. This way the scripts don’t contain/display the actual passwords of the users.

In order to have a password in a hash format for the users when adding it via the NodeGrid WebUI, it is required to generate the hash password first on the NodeGrid shell prompt or elsewhere such as linux or a hash generator application.

There are several methods and options of hashing to generate hash passwords such as openssl, chpasswd, mkpasswd, and MD5, SHA256, SHA512, but this topic of how to generate hash passwords is not the scope of this article. Use any of your choice / preference.

Below we provide one example using openssl running on NodeGrid shell to generate the hash password. 

root@nodegrid:~# openssl passwd -1 -salt mysalt

Password:

$1$mysalt$4Lz7hS.y2V54mV2gJXEKR/

 

Once the hash password is generated, copy it and paste it on the password fields from step 4 above with Hash Format Password checkbox checked.

 

Adding new users via CLI:

1. log in as admin to the CLI (via telnet/ssh/console)

2. type the following commands:

[admin@nodegrid /]# add /settings/local_accounts/

[admin@nodegrid {local_accounts}]# set username=<username>

[admin@nodegrid {local_accounts}]# set password=<password>

[admin@nodegrid {local_accounts}]# save

 

If hash password is desired, then type the following:

[admin@nodegrid /]# add /settings/local_accounts/

[admin@nodegrid {local_accounts}]# set username=<username>

[admin@nodegrid {local_accounts}]# set password=$1$mysalt$4Lz7hS.y2V54mV2gJXEKR/ hash_format_password=yes

[admin@nodegrid {local_accounts}]# save

    • Related Articles

    • Default Users of the NodeGrid

      The Nodegrid OS comes with 3 default users:   - The “admin” user:   That provides full access to all features and functions, on the Web Interface as well as on the CLI. It can login via the Console, via SSH, WebUI and API. From the CLI, admin user ...
    • How to Recover/Reset Password of Admin or Root Users

      Case #1 The admin password was changed and you don’t remember it, but root password is still the default. Log in as root via NodeGrid console port, type its default password root. At the shell prompt, type passwd admin and enter the new password. You ...
    • How to Recover/Reset NodeGrid Authentication Type

      Situation The NodeGrid was configured and saved with a Remote Authentication Server without any Fallback Authentication options, and the authentication server’s settings were incorrect. Now, none of the local users are able to log in, including admin ...
    • Where Can I Get the NodeGrid User Guide?

      The Nodegrid User Guide is available at https://docs.zpesystems.com/nodegrid/docs. Click on the following link to access the resource guide designed to help users find the information they need. ...
    • How to Configure the NodeGrid to Be More Secure?

      As far as the NodeGrid software's networking services, it comes with some security in mind, but it still is not as closed as some network policies require. This can be accomplished by changing the services settings in Security :: Services page per ...