Log InGet OrdStyle

User Management

Everything on this page is on the Server Users settings page. It is available when you are connected to a server with an admin permission, and on the machine that holds the server’s data folder — whether the server inside the app is stopped or running. While it runs, what you change takes effect at once, for everybody connected.

The server settings pages are disabled while something else holds the same data folder: a headless server, or a document you are sharing locally. To administer a headless server, connect to it as a client with admin permissions instead.

The first account

A new server has no accounts. On the machine that holds its data folder, add one on the Server Users page — or, for a headless server, from the command line, with the server stopped. The value is name:password:permissions; the last part is the admin permission bits, and 511 grants all of them:

sudo -u ordstyle /opt/ordstyle/ordstyle --data-dir /var/lib/ordstyle --adduser "alice:her-password:511"

Give it the server’s own --data-dir — without one it writes to Documents/OrdStyle in the home folder of whoever runs it, which is not where the server looks. Run it only while the server is stopped: a running server rewrites its database when it stops, and the account is lost. The password cannot contain a :. See Server Setup for the account and folders this example assumes.

After that, sign in as that user and do everything else from inside the program.

Adding people

There are two ways.

Create the account yourself

On the Server Users page, Add User asks for the user name; Change Password sets their password, and the row’s Groups and Permissions cells set the groups they belong to and their admin permissions. Then tell them the name and password. Simple, but it means a password travels by some other channel.

Every account gets a home folder, /home/<name>. In it the account has every folder permission except Upload Scripts, and every document permission except Admin Document on the documents there; a document it creates is its own, with every permission, as it is anywhere.

Send an invitation

Better: create an invite and let the person choose their own password. An invite carries everything the new account should start with, so nothing has to be set up afterwards.

Field Meaning
Code The code itself, generated for you
Number How many people may use it. One for a single person, more for a whole team
Expires When it stops working — an hour after it is made, unless you change it
Filename A note of the document it is for. It does not grant access to it
Groups Groups to put them in
Permissions The admin permissions they start with
Name, Email, Description Who it is for, and a note to yourself

New Invite makes one; Copy Invite puts it on the clipboard as a single string that includes the server address and port from the top of the page, so the recipient does not have to be told those separately. Email Invites sends it to a list of addresses instead, each person getting a single-use copy of their own.

The emails go out from the server’s own email account, which everyone who can invite shares. Set it up once with Email Account… beside Email Invites (it takes Manage Server): the mail server, its security — SSL/TLS on port 465 or STARTTLS on port 587 — the user name and password, and the address the invites come from. Many providers want an app password here rather than your usual one. Save and Send a Test… checks it. The password is stored on the server and never shown again.

An email account for invites: smtp2go

If you don’t have a mail server to send from, a free smtp2go account works well — the free plan sends up to 1,000 emails a month, far more than invites need.

  1. Sign up at smtp2go.com. It asks for an email address at your own domain (not Gmail or Yahoo) and confirms your phone by text.

  2. Verify a sender — the address your invites will come from — under Sending ▸ Verified Senders, either the single address or your whole domain.

  3. Add an SMTP user under Sending ▸ SMTP Users, and set its password. This user name and password are what OrdStyle signs in with — they are not your smtp2go account login.

  4. In OrdStyle, open Email Account… and enter:

    Field Value
    Mail server mail.smtp2go.com
    Security SSL/TLS, port 465 (or STARTTLS, port 587)
    User name the SMTP user from step 3
    Password that SMTP user’s password
    From address the sender you verified in step 2
    From name how invites should be signed, e.g. your team
  5. Save and Send a Test… to yourself. If the test says Incorrect authentication data, the user name or password is the account login rather than the SMTP user’s.

The recipient pastes the code into Accept Invite on their Connection Settings page, picks a user name and password, and they are in — already in the right groups, with the right permissions. To give them a document, grant its permissions to one of those groups.

An invitation can carry only what its writer has: admin permissions they hold themselves, and groups they belong to or manage with Add Members (anyone with Add Users to Groups or Admin Groups may name any group). The permissions they don’t hold are grayed out, and nobody can change an invitation that gives more than they have.

Groups

A group is a named set of users. Permissions on documents and folders are granted to groups as readily as to individuals, which is how you avoid revisiting every document each time somebody joins.

The usual arrangement:

  • Make a group per team, or per role — editors, reviewers, everyone.
  • Grant folder and document permissions to those groups, not to people.
  • Adding somebody is then one action: put them in the right group.

Add Group and Remove Group on the Server Users page make and delete groups. Members… shows who is in a group, with Add and Remove; each person’s Groups cell holds the same thing as a space-separated list.

Group managers

A group can have its own managers: people who may add others to it or take them out, without any server-wide admin permission. Managers… sets them for a group — a person, another group (everyone in marketing-leads manages marketing), or a list of people — each with Add Members, Remove Members, or both. A manager sees the groups they manage, everyone’s user name to pick from, and nothing else about the accounts.

Permission Lets you
A group’s manager Add or remove that group’s members, as the manager entry allows
Add Users to Groups Add anyone to any group
Remove Users from Groups Remove anyone from any group
Create Group Make new groups
Admin Groups Make, rename and delete groups and choose their managers; includes both of the above
Add/Invite User Put new people into groups through an invitation — groups you are in or manage with Add Members, or any group with Add Users to Groups or Admin Groups

Choosing a group’s managers is an Admin Groups decision for the same reason choosing what the group can open is: whoever adds members decides who gets the group’s access.

Managing existing accounts

With Admin Users permission you can:

  • Change Password — for somebody who has lost theirs.
  • Kick User — disconnect somebody who is connected right now. They can reconnect.
  • Remove User — delete the account.
  • Change admin permissions — which takes effect immediately, even mid-session (so do group changes, made as above). If you revoke edit permission on a document somebody has open, their editor goes read-only there and then; if you revoke view, they are disconnected.

Administrative actions are written to audit.log in the server’s data folder.

Names and display names

Your user name is your identity on the server. It owns your documents, your comments, your direct messages and your entries in the change history.

If you open the same document twice — from two machines, say — the second connection is shown as name#1 so cursors and colors do not collide. That suffix is only for the live session. Anything written down — comments, history, ownership — uses your plain name.

Each person is given a color from a fixed palette when they join a document — the one nearest their own choice that nobody else in the document is using. Their cursor, their comments and their marks in the history all use it. You set your own preferred name and color on the Connection Settings page.

Passwords

A password only ever travels inside the encrypted connection, and the server keeps only a salted, slow hash of it — never the password itself. A failed sign-in gives the same message whether the user name was wrong or the password was, so the server cannot be used to find out who has an account. Ten failures from one address within a minute shut that address out for five minutes.

Next steps