User management documentation (#1).

This commit is contained in:
Dan Helfman 2019-06-03 21:59:48 -07:00
parent 1cce298f22
commit b2e2ade44f
1 changed files with 29 additions and 1 deletions

View File

@ -26,7 +26,7 @@ Source at
## Example
docker run --detach --name=mediagoblin \
$ sudo docker run --detach --name=mediagoblin \
--env \
--env \
--env EMAIL_PORT=587 \
@ -39,3 +39,31 @@ docker run --detach --name=mediagoblin \
--publish 80:80 \
## User management
Since this image is for running a private MediaGoblin server, user
self-registration is disabled. So, to add a user, first exec into the running
Docker image:
$ sudo docker exec -it mediagoblin bash
Where `mediagoblin` is the name of your running Docker container. If you dont
know the name to use, try looking in `docker ps` output.
Then, add a user (follow the prompts):
# su - mediagoblin
$ gmg --conf_file /app/mediagoblin_local.ini adduser
Finally, if you want to make the new user into an admin user:
$ gmg --conf_file /app/mediagoblin_local.ini makeadmin username
Where `username` corresponds to the user you added above.