Knox logon configuration

Updated at:
Copy as MD

Before you can use Knox as a proxy to access the web UIs of other components, you must perform a simple configuration. This topic describes the configuration process.

Log on to the Knox node and run the following commands:

  1. Create the `admin` user and set a password for it.

> useradd admin
> passwd admin
# Enter a password. Remember the password that you set. You will use it to log on to Knox.
  1. Add the `knox` user to the `admin` group.

> usermod -a -G admin knox
  1. Create the `shadow` group and add the `knox` user to it.

# Create the shadow group.
> groupadd shadow

# Add root to the shadow group.
> usermod -a -G shadow root

# Add knox to the shadow group.
> usermod -a -G shadow knox

# Change the group of the /etc/shadow file to shadow.
> chgrp shadow /etc/shadow

# Add read permission for the group to the /etc/shadow file.
> chmod g+r /etc/shadow
  1. Restart Knox from the management interface. Then, log on with the `admin` username and the password that you set.