User Management
This section covers how to manage users on the ENC server. These actions generally require Admin privileges.
System Admin vs. ENC Users
System Admin: This is the default user (commonly
admin) configured during server deployment. They have SSH access to the container and root-level permissions.ENC Users: These are restricted users created for developers. They are confined to the
enc-shelland cannot modify system configurations.
Creating a New User
The most convenient way to create users is via the ENC CLI.
Login as Admin:
enc login # Ensure you are logged in with an account that has 'admin' permissions
Run the Create Command:
enc user create <username> --role user
You will be prompted to set a password for the new user.
SSH Key Assignment (Legacy): You can provide a public SSH key during creation, but it is recommended to skip this. Users can easily set up their own keys after their first login using:
enc setup ssh-key
Managing Permissions
Permissions are currently managed via a global policy file on the server at /etc/enc/policy.json.
To modifying roles manually:
SSH into the server/container:
docker exec -it enc_ssh_server /bin/bash
Edit the policy file:
vi /etc/enc/policy.json