Skip to content

Setting Up the First Administrator

A new Tadoru server has no account. You make the first administrator on the “Set up Tadoru” page, with a setup token from the server. After that, you log in with the name and password that you chose.

The setup token is a one-time secret. When the server starts with no account, it writes the token.

  • The file is setup-token in the state root of the server, for example ./data/state/setup-token. The state root is the directory that holds the revisions, the databases and the secrets of the server.
  • Only the user that runs the server can read the file.
  • The token works once. When you use the token, the server deletes the file.
  • The token lasts one day. If it expired, restart the server, and it writes a new token. The “Set up Tadoru” page tells you when the token in the file no longer works.

Read the token on the machine that runs the server:

Terminal window
cat ./data/state/setup-token
  1. Open the console in your browser.
  2. On the “Log in to Tadoru” page, the note “This server has no administrator yet” shows above the form. Click “Set up Tadoru”.
  3. In “Setup token”, paste the token from the file.
  4. In “User name”, type the name of the new account. Use lower case letters, digits, and the characters -, _ and ., with 64 characters at most.
  5. In “Password”, type a password of at least 12 characters. To see what you typed, click the eye button at the end of the field, “Show password”. While Caps Lock is on, “Caps Lock is on.” shows under the field.
  6. Click “Make the administrator”.

The console shows “Administrator made. Log in with the new name and password.” and opens the “Log in to Tadoru” page. Setup does not log you in. Log in as the next step, as Logging In and Out tells.

The form shows the words of the server above the fields, or under the field that the server names.

  • If the token is wrong, spent or expired, the server refuses it. Get a new token, then try again.
  • If the server has an administrator, the “Set up Tadoru” page shows no form. It says “This server has an administrator”. Log in with an account of the server instead.
  • If the page says “The setup token in the state root no longer works”, restart the server. Then read the new token from the file.
  • If an account with that name exists, the server refuses the name. Choose another name.
  • If the name or the password does not follow the rules above, the server refuses it. Change the field, then try again.
  • If you try too many wrong tokens, the server refuses for some time. Its message says how long to wait.

If you already have an account, click “Have an account? Log in” to go back to the login page.