User Access
4 minute read
User Access can be sub divided in two layers:
- Application User Access - explaines how to configure application login.
- Controller User Access - explaines how to configure controller login.
Configure Application User Access
The application defines three user groups, each with distinct permission levels:
administrator– Can view, modify, and save all system parameters.operator– Can view and modify only input parameters.monitor– Has read-only access and cannot modify any parameters.
The system includes three default accounts:
administrator, is part of theadministratorgroup, default login password:administrator.operatoris part of theoperatorgroup, default login password:operator.monitoris part of theoperatorgroup, default login password:monitor.
The configure accounts.conf section, explains how to change a default account password. Login is enabled after activation inside the config.json.
Configure accounts.conf
You can add an account or change an existing account via the accounts.conf located in the config folder. An account is created with the following format:
username:groupId password_hash
-
Replace
username, by a the name of your choice. -
The
groupIDdefines the user access rights:3 = administrator7 = operator15 = monitor
-
Replace the
password_hashto an openSSL-encoded password generated via cockpit terminal and command:openssl passwd -6 myAwesomePassword- Fill a
passwordof your choice formyAwesomePassword
In case you want to change a default account password, you need to use the same username and groupID, the password_hash can be replaced by the a password of your choice for example:
accounts.conf change default passwords example:
administrator:3 $6$pP7yN5SHfloRh3SO$SGzcD1HPd9bvba2mwe.x7qPNOATDtsyp9aFhsbWswQ72Hy8TuIYVpVpNixsIKqkx8O6TI.RdL7nmNJVATvhLs/
operator:7 $6$QVzv7xLJcX.Q09Xc$6MiqIvMbpOZ3EQmmxLyYEauKf1Q5dL7JTHHNYKpllkhADjaCV1TyryXZsUMjTXXfPa6axnb8n3HMpvGvf2B9b0
monitor:15 $6$tGM1ioTsUaBzv.LI$t1WQmXmCJPA5UepNsBg.40x87U.fKqscSSDmw/eAIM3r8ehGPObdIYhM5en7fbVr1l8gsjTVVH/pZwdXKVzVY/
- You can
disablethedefault accountsby adding the following lines to your accounts.conf:
administrator disable
operator disable
monitor disable
accounts.conf example disable administrator access:
administrator:3 $6$pP7yN5SHfloRh3SO$SGzcD1HPd9bvba2mwe.x7qPNOATDtsyp9aFhsbWswQ72Hy8TuIYVpVpNixsIKqkx8O6TI.RdL7nmNJVATvhLs/
operator:7 $6$QVzv7xLJcX.Q09Xc$6MiqIvMbpOZ3EQmmxLyYEauKf1Q5dL7JTHHNYKpllkhADjaCV1TyryXZsUMjTXXfPa6axnb8n3HMpvGvf2B9b0
monitor:15 $6$tGM1ioTsUaBzv.LI$t1WQmXmCJPA5UepNsBg.40x87U.fKqscSSDmw/eAIM3r8ehGPObdIYhM5en7fbVr1l8gsjTVVH/pZwdXKVzVY/
administrator disable
Now you have configured an account inside the accounts.json
Enable User Login
You can enable the user login via the config.json file.
Change Login from disable to enable.
"Server": {
"Default": {
"URL": "wss://*:5568:5567",
"Direction": "listen",
"Login": "enable",
"Accounts": "accounts.conf"
"Certificate": "/etc/ssl/certs/motorcortex.pem"
}
},
Now it is required to fill in the username and password every time you are connecting to either:
- Log in to DESK-Tool.
- Log in to [GRID-Tool]
Configure Controller User Access
The controller includes two default user accounts with different permission levels:
admin– Has full administrative privileges, including sudo access to all system files and directories. This user can modify, save, and manage any file or configuration on the controller.operat– Has limited access and cannot use sudo. This user can view, copy, and edit files only within the home directory and is allowed to execute commands that do not require elevated privileges.
Change user password on your controller?
For security reasons it is highly recommended to change user password of your controller:
Change admin password
The next steps explain you, how to change the default admin password: vectioneer to a password of your choice:
Warning
Changing the password cannot be undone. Make sure to remember it; otherwise, you will need to re-flash the mcx-rtos image.
- Login to cockpit with
admincredentials.
Default user name: admin
Default password: vectioneer
- Browse to the terminal and reset
adminuser password:
sudo passwd admin
-
Enter password for
sudoper defaultvectioneer, -
Enter your
new password:, after which you retype yournew password:
If successful you receive the message: password update successfully. Now you can log in with admin and your new password.
Change operat password
The next steps explain you, how to change the default operat password: operat to a password of your choice:
- Login to cockpit with
admincredentials.
Default user name: admin
Default password: vectioneer
- Browse to the terminal and reset
operatuser password:
sudo passwd operat
-
Enter password for
sudoper defaultvectioneer. -
Enter your
new password:, after which you Retype yournew password:
If successful you receive the message: password update successfully. Now you can log in with operat and your new password.