Browse Source

User management documentation (#1).

master
Dan Helfman 2 weeks ago
parent
commit
b2e2ade44f
1 changed files with 29 additions and 1 deletions
  1. 29
    1
      README.md

+ 29
- 1
README.md View File

@@ -26,7 +26,7 @@ Source at https://projects.torsion.org/witten/mediagoblin-docker
26 26
 ## Example
27 27
 
28 28
 ```console
29
-docker run --detach --name=mediagoblin \
29
+$ sudo docker run --detach --name=mediagoblin \
30 30
     --env NOTIFICATION_EMAIL=media@example.org \
31 31
     --env EMAIL_HOSTNAME=mail.example.org \
32 32
     --env EMAIL_PORT=587 \
@@ -39,3 +39,31 @@ docker run --detach --name=mediagoblin \
39 39
     --publish 80:80 \
40 40
     witten/mediagoblin:latest
41 41
 ```
42
+
43
+## User management
44
+
45
+Since this image is for running a private MediaGoblin server, user
46
+self-registration is disabled. So, to add a user, first exec into the running
47
+Docker image:
48
+
49
+```console
50
+$ sudo docker exec -it mediagoblin bash
51
+```
52
+
53
+Where `mediagoblin` is the name of your running Docker container. If you don’t
54
+know the name to use, try looking in `docker ps` output.
55
+
56
+Then, add a user (follow the prompts):
57
+
58
+```console
59
+# su - mediagoblin
60
+$ gmg --conf_file /app/mediagoblin_local.ini adduser
61
+```
62
+
63
+Finally, if you want to make the new user into an admin user:
64
+
65
+```console
66
+$ gmg --conf_file /app/mediagoblin_local.ini makeadmin username
67
+```
68
+
69
+Where `username` corresponds to the user you added above.

Loading…
Cancel
Save