Add a section on managing user accounts from the command line to the manual

This commit is contained in:
Kovid Goyal 2017-06-19 17:38:45 +05:30
parent 9d454badb5
commit 20442f39a9
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -207,6 +207,29 @@ If you are using a particular old or limited browser or you don't like to run
JavaScript, you can use the *mobile* view, by simply adding ``/mobile`` to the
the server address.
Managing user accounts from the command-line only
-----------------------------------------------------
The calibre program has a nice section in :guilabel:`Preferences` to allow you
to manage user accounts for the server. However, if you want to run the
standalone server and cannot run the main calibre program on the same
computer/user account, you can also manage users using just the command-line.
You can manage user accounts using the ``--manage-users`` option
to the standalone ``calibre-server`` program. Suppose you want to store
the user database in the directory ``/srv/calibre``, then you create it
by running::
calibre-server --userdb /srv/calibre/users.sqlite --manage-users
Just follow the prompts to create user accounts, set their permission, etc.
Once you are done, you can run the server as::
calibre-server --userdb /srv/calibre/users.sqlite --enable-auth
It will use the user accounts you created in the previous step.
Integrating the calibre Content server into other servers
------------------------------------------------------------