Skip to content

User Profile

Have a look inside data directory (DATADIR): you'll find under data/users/ a directory by user (since v0.0.3). The directory name is expected to be the username given in the webUI login form.

User Settings

rmfakecloud stores user configuration (password, email, options, ...) in a file inside its directory, named .userprofile. This is a hidden file.

This file, written in YAML, have the following relevant entries:

Entry Description
password Password to access the account (in Argon2 format)
name Name displayed in the webui
isadmin Boolean indicating if the user can perform administration tasks (currently managing user accounts)
sync15 Boolean value that indicates if the user is using the diff synchronization (aka. sync 1.5)
integrations Array with the user integrations. See Integrations
totpsecret Secret for the two-factor login, only present if it is enabled
tokensvalidafter Web UI sessions started before this time are invalid, set on every password change

Edit settings through CLI

Use the same binary as for launching the server: it takes some specials commands described bellow.

When using the Docker image, you can run :

docker exec rmfakecloud /rmfakecloud-docker special-command

rmfakecloud listusers

This commands lists existing users.

rmfakecloud setuser

This commands edit or create account.

To create/update an admin account ddvk:

rmfakecloud setuser -u ddvk -a

To reset a password:

read -s -p "New password: " NEWPASSWD && rmfakecloud setuser -u ddvk -p "${NEWPASSWD}"

rmfakecloud disabletotp

This command turns off the two-factor login of a user, e.g. after losing the phone:

rmfakecloud disabletotp -u ddvk

Two-factor login

Every user can enable a second factor for the web UI login on the profile page: scan the QR code with an authenticator app (any app supporting TOTP) and enter the code it shows. From then on, the login asks for the current code after the password. Disabling it on the profile page also requires a code.

Tablets are not affected: they are paired with a code from the web UI.

Directory Structure

In a user directory, there are files like [UUID].metadata and [UUID].zip (if you are not using sync 1.5): this corresponds to your raw documents on your tablet.

There is also a trash directory, containing deleted files on the tablet, in its trash.

If you are using sync 1.5, the magic happen in the sync directory.