Creating an Administrator and a Test User
This procedure uses the dicfg command line tool to create an administrator and a test user for the initial DiveLine configuration.
NOTE: Setting environment variables is dependent on the shell you are using. This procedure uses the following dicfg format to create the administrator and test user:
./dicfg -dataroot $DIDATAROOT <dicfg commands>
$DIDATAROOT is the path to /dl-dataroot that is specified in the init-di-diveline file.
To create users for DiveLine:
-
Go to the /executables directory.
cd /di/platform/executables
-
View the permissions for dicfg.
ls -l dicfg
The permissions display. If the permissions are -rwxrwxrwx, you can create users. Proceed to step 3.
If you do not have permission to create users:
-
Enable the execute permission.
sudo chmod a+rwx dicfg
-
Verify that the permissions have changed.
ls -l dicfg
The permissions display as -rwxrwxrwx.
-
-
Create the administrator user ID.
sudo ./dicfg -dataroot /di/platform/dl-dataroot add user -user <admin username> -password <admin password> -administrator true
For example:
sudo ./dicfg -dataroot /di/platform/dl-dataroot add user -user admin -password adminpassword -administrator true
-
Create the test user ID.
sudo ./dicfg -dataroot /di/platform/dl-dataroot add user -user <test user name> -password <test user password>
For example:
sudo ./dicfg -dataroot /di/platform/dl-dataroot add user -user tester -password testuserpassword