Skip to content

Commit fbd99cf

Browse files
Super user documentation (#286)
* 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]>
1 parent 6afafb4 commit fbd99cf

15 files changed

+92
-1
lines changed
9.59 KB
Loading
39.9 KB
Loading
54.7 KB
Loading
Loading
89.3 KB
Loading
98.9 KB
Loading

docs/src/administrator/guide/index.md

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,42 @@ To access the `Usage Statistics`, click on the profile icon in the top navigatio
134134

135135
**Navigation Tip:**
136136

137-
Users can easily access detailed information by clicking on the name of the respective table in the `Usage Statistics` section. Additionally, they can scroll through the tables to explore the variety of insights available at a glance.
137+
Users can easily access detailed information by clicking on the name of the respective table in the `Usage Statistics` section. Additionally, they can scroll through the tables to explore the variety of insights available at a glance.
138+
139+
## Creating a SuperUser
140+
141+
- Open the terminal.
142+
143+
Run ```docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add admin```
144+
145+
![create superuser command](./img/superuser-1.png)
146+
147+
The user is expected to input either `Y` for Yes or `n` for No based on their intention to create a superuser.
148+
149+
![confirmation](./img/superuser-2.png)
150+
151+
Enter the required information for creating the superuser account
152+
153+
![enter information](./img/superuser-3.png)
154+
155+
## Converting a Normal User to a SuperUser
156+
157+
```bash
158+
docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add <username>
159+
```
160+
Replace the `username` with the desired user's username.
161+
162+
![convert the normal user to a super user](./img/superuser-4.png)
163+
164+
Before the superuser privileges
165+
166+
![Bob002 as a normal user](./img/superuser-5.png)
167+
168+
After the superuser privileges
169+
170+
![Bob002 as a superuser](./img/superuser-6.png)
171+
172+
**Security Tips:**
173+
174+
- Keep SuperUser credentials secure.
175+
- Regularly update SuperUser credentials for enhanced security.
Loading
Loading
Loading
Loading
Loading
Loading

docs/src/administrator/manual/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ The administrator manual aims to assist user in learning the fundamentals of usi
2020
- [**About**]()
2121
- [**Help**]()
2222
- [**Usage Statistics**](./usage-statistics.md)
23+
- [**Create SuperUser**](./super-user.md)
2324

2425
### Error reporting
2526

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Documentation: Creating SuperUser
2+
3+
## Creating SuperUser from Terminal
4+
5+
To create a superuser, open the terminal.
6+
Use the following command to add a superuser with the username `admin`:
7+
8+
```bash
9+
docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add admin
10+
```
11+
- Replace `admin` with the desired username for the superuser.
12+
13+
![command](./img/super-user-1.png)
14+
15+
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.
16+
17+
![confirmation](./img/super-user-2.png)
18+
19+
If the user chooses `Y` then they need to provide the email and password for the administrator account.
20+
21+
![required information](./img/super-user-3.png)
22+
23+
## Converting Normal User to SuperUser
24+
25+
Existing users can be elevated to superuser status through the terminal.
26+
Use the following command, replacing <username> with the username of the registered user:
27+
28+
```bash
29+
docker exec -ti saeoss_ckan-web_1 poetry run ckan sysadmin add <username>
30+
```
31+
32+
![convert the normal user to a superuser](./img/super-user-4.png)
33+
34+
This command promotes the specified user to superuser status.
35+
36+
Before the superuser privileges
37+
38+
![Bob002 as a normal user](./img/super-user-5.png)
39+
40+
After the superuser privileges
41+
42+
![Bob002 as a superuser](./img/super-user-6.png)
43+
44+
**Important Notes:**
45+
46+
- Superusers have elevated privileges and can access and modify system-wide settings.
47+
- Superusers can only be created via the terminal and not through the CKAN site.
48+
49+
**Important Security Considerations:**
50+
51+
- Superuser and super admin credentials should be kept secure.
52+
- Regularly review and update superuser/admin credentials to enhance system security.

0 commit comments

Comments
 (0)