-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Super user documentation * Added guide for creating super user * Minor changes * Add reference in index file * Apply suggestions from code review Formating changes, Co-authored-by: Jeremy-Prior <[email protected]> --------- Co-authored-by: Jeremy-Prior <[email protected]>
- Loading branch information
1 parent
6afafb4
commit fbd99cf
Showing
15 changed files
with
92 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Documentation: Creating SuperUser | ||
|
||
## Creating SuperUser from Terminal | ||
|
||
To create a superuser, open the terminal. | ||
Use the following command to add a superuser with the username `admin`: | ||
|
||
```bash | ||
docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add admin | ||
``` | ||
- Replace `admin` with the desired username for the superuser. | ||
|
||
 | ||
|
||
After running the command to add a superuser, the system typically asks for confirmation. Users are prompted to confirm whether they indeed want to create a superuser. The user is expected to input either `Y` for Yes or `n` for No based on their intention to create a superuser. | ||
|
||
 | ||
|
||
If the user chooses `Y` then they need to provide the email and password for the administrator account. | ||
|
||
 | ||
|
||
## Converting Normal User to SuperUser | ||
|
||
Existing users can be elevated to superuser status through the terminal. | ||
Use the following command, replacing <username> with the username of the registered user: | ||
|
||
```bash | ||
docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add <username> | ||
``` | ||
|
||
 | ||
|
||
This command promotes the specified user to superuser status. | ||
|
||
Before the superuser privileges | ||
|
||
 | ||
|
||
After the superuser privileges | ||
|
||
 | ||
|
||
**Important Notes:** | ||
|
||
- Superusers have elevated privileges and can access and modify system-wide settings. | ||
- Superusers can only be created via the terminal and not through the CKAN site. | ||
|
||
**Important Security Considerations:** | ||
|
||
- Superuser and super admin credentials should be kept secure. | ||
- Regularly review and update superuser/admin credentials to enhance system security. |