Device passwords
Copy as MarkdownA device password is the permanent password of a computer, set from the console instead of at the computer. You type it or let the server generate one, for one computer or for every computer of a group, folder or organization, and the server can change it on a schedule or after each session. People with the right permission connect with it from NeoDesk Viewer or NeoDesk Desktop without ever seeing it.
The server keeps the password encrypted. The computer gets only a check value made from it, never the password, sealed so that only that computer can read it.
| On the computer | What happens |
|---|---|
| A current NeoDesk Desktop or NeoDesk Companion | It takes the password, confirms it, and the console shows it as set. |
| An older NeoDesk Desktop | It ignores the password and keeps its own. The device's sheet says "This computer's NeoDesk is too old to take a password from the console." |
| Stock RustDesk | It can't take a password from the console. The sheet says so. Set the password on the computer as Unattended access describes. |
The computer takes the password the next time it reports to the server, within about two minutes of coming online. On Windows the NeoDesk service stores it, like a password typed in the client's settings.
On NeoDesk Companion, a password set from the console works as well as the person's Allow. Without one, the Companion still lets nobody in with a password outside a Get help session.
| Permission | Short name | What it allows |
|---|---|---|
| Set device passwords | device.password_set |
Set, generate and remove passwords, for one computer or many, and the policies that change them. |
| Use device passwords | device.password_use |
Connect with the console's password from NeoDesk Viewer or a signed-in NeoDesk Desktop, without seeing it. It also needs Connect to devices. |
| Show device passwords | device.password_view |
Show the password, after the account's password and second factor. |
Only super admins and administrators have them by default. Give them to another role on the Permissions page. They reach only the devices the account may see.
- Open the device, and on its Actions tab, or in its menu in the device list, choose Device password.
- Type the password under New password and click Set password, or click Generate a password to let the server make a long random one.
- The sheet shows the state: Waiting for the computer until the computer took it, then Set by the console, with who set it and when.
The password needs at least 8 characters, no spaces at the start or end. A generated password has four groups of four letters and digits.
Remove password asks the computer to remove the password the console set. A password someone changed at the computer stays. For a stock RustDesk client, or after the password was changed at the computer, the server only forgets its copy.
When someone sets another permanent password at the computer, the computer reports it. The sheet then says "Changed at the computer. The stored password no longer works." Set a new one from the console, or remove it.
When the computer's settings don't allow changing the permanent password, the sheet says "The computer's settings are locked against password changes from the server."
For a folder or group, open its menu in the device list and choose Device passwords. For an organization, open Policies, pick the organization and use Set passwords now under Device passwords.
- A generated password for each computer is the default. Each computer gets its own.
- The same password for all computers takes the password you type. One leaked password then opens every computer there, so prefer a password for each computer.
Stock RustDesk clients and computers outside your scope are left out and counted.
A policy says how the server keeps the passwords of a computer, folder, group or organization:
| Setting | What it does |
|---|---|
| Each computer gets its own password, generated by the server | A computer that can take one gets a password as soon as it is there. |
| Change the password every (days) | The server sets a new generated password when the current one is older. 0 never changes it; at most 365. |
| Change the password after each session | Once the computer took the password, the server sets a new one when a session to it ends. |
Set it for one computer in its Device password sheet, for a folder or group in Device passwords from its menu, and for an organization on the Policies page under Device passwords. A computer follows its own policy first, then its folder's, then its groups' together, then its organizations' together. Policies taken together generate a password when one does, change after a session when one does, and use the shortest schedule.
The server applies the policies every minute. A password someone changed at the computer is left alone.
Connect in NeoDesk Viewer uses the console's password for accounts with Use device passwords and Connect to devices. The server answers the computer's password question itself, so the browser never gets the password.
NeoDesk Desktop does the same when it is signed in to the server with such an account and has no password of its own for the computer. It asks the server for the answer and never holds the password. Stock RustDesk and older NeoDesk Desktop versions ask for the password as before.
While a new password waits for the computer, Connect still works with the one before. Each use is in the audit log.
Show password in the device's sheet reveals the password to an account with Show device passwords:
- The account needs two-factor sign-in. Without it the sheet says "Turn on two-factor sign-in for your account to show device passwords."
- Enter your own password (for an account of the console) and the code of your second factor, then click Show password. An account with a passkey confirms with the passkey instead of the code; with both, Use a passkey instead switches to it. Passkeys need the console at a host name over HTTPS.
- The password shows for 30 seconds and hides again.
A wrong password or code counts as a failed sign-in, and the lockout after too many applies here too. API tokens and the command line can't show a password. Every look is in the audit log with who looked and when.
The server encrypts the passwords with the key file .device_vault_key in
the folder of its key pair, the same file that keeps
saved sign-in
details. The database and the full backup hold them encrypted.
- A restore on the same server opens them again.
- A restore on another server needs the key file too: copy
.device_vault_keyfrom the old server's key folder into the new one's before it starts, with mode 0600. The full backup doesn't contain the file. - Without the file, the new server can't open the passwords. Connect then falls back to asking for the password, and Show says the password can't be read. Set the passwords again (for many computers at once from the folder, group or organization), and the computers take the new ones.
Changing a device's ID or deleting it for good deletes its stored password. The computer keeps the password it took.
The audit log shows:
| Entry | When |
|---|---|
| Device password set, Device password generated | Someone set or generated a password for one computer. |
| Device passwords set for many devices | Someone set passwords for a group, folder or organization, with how many were set and left out. |
| Device password removed | Someone removed a password. |
| Device password shown | Someone showed a password, with who. |
| Device password action refused | A set, removal or Show was refused, with the reason. |
| Device password policy changed | Someone changed a policy, with its settings. |
| Device password used to connect | NeoDesk Viewer or NeoDesk Desktop connected with it. |
| Device took the device password, Device removed the device password | The computer confirmed. |
| Device password changed at the device | Someone set another password at the computer. |
| Device did not take the device password | The computer refused, with the reason. |
| Device password changed by policy | A policy generated or changed a password. |
No entry holds a password.
With Set device passwords, the command line sets, generates and removes
passwords and sets policies. Put the device's ID in place of <device-id>,
a folder's number in place of <folder-id> and an organization's ID in place
of <org-id>, with the password in a file:
neodesk devices password-set <device-id> --password-stdin < password.txt
neodesk devices password-set <device-id> --generate
neodesk devices password <device-id>
neodesk devices password-remove <device-id>
neodesk devices password-bulk --target-type folder --target-id <folder-id> --mode generate
neodesk devices password-policy-set --target-type org --target-id <org-id> --generate --rotate-days 30
neodesk devices password-policiesNo command shows a password.