SD Core Solo for Windows WS2.0-0

Administrator commands

admin, the commands that need it, and the maintenance verbs.

The administrator commands are in your own account, and they need admin first. There is no separate administrator account to sign in to.

admin#

:admin
Administrator password:
Administrator commands unlocked for this session

Type the administrator password — or, on a managed computer, the global password. It lasts until you leave SD or type admin off:

:admin off
Administrator commands locked
Wrong password - administrator commands stay locked one try; type admin again
Administrator commands are already unlocked nothing to do
No administrator password is set on this system the installation did not set one; install again

A session signed in with the global password is already unlocked.

Every attempt is recorded in the audit trail, unlocked or refused. The password is never displayed, stored or logged.

What needs it#

Refused without admin, with Command requires administrator privileges:

set.password admin change the administrator password — The account and its passwords
config report or set configuration — except config gpl and config contrib, which need nothing
set.date set the session's date
clean.account empty the account's scratch files
update.accounts refresh the account's VOC
list.voc.removed, restore.voc the VOC records SD no longer ships, and putting back one the update removed — update.accounts below
set.os.access show, or turn on and off, the shell and OS access switches — Operating system access
remote.ssh, remote.api, tool.remote whether Solo's ssh server and the API are off, local or open — ssh access, API access
backup.account, restore.account, set.backup.directory, tool.backups, settings.report Backing up and restoring the account
set.recovery the IDE's recovery copy of text you have not saved
append.sd.path put SD on your PATH, or take it off
set.net.access show, or turn on and off, the NET gate (API request 29, with NETFILES=2) — API access
set.server, delete.server, list.servers the servers SDNet may reach — the SDNet page of the User set
set.xfer.access show, or turn on and off, file transfer over Solo's ssh (receive and send, with XFER=1 in sd.conf); off as delivered — Security, and for the person Moving Files In and Out in the User documentation
set.start.default, set.tile, set.pins, tool.menus where a session starts, which tiles the home screen has, whether the account may add its own — The home screen's settings below
set.viewer, tool.viewers, docs.install, load.help the readers pdf may start, the documents it shows, the context help — Showing a document with pdf
set.ai, tool.ai whether the AI may be used (set.ai gate on; off as delivered), its provider, model and key, and the page that does it — Setting up the AI helper
set.jobs.access show, or turn on and off, SD's scheduled jobs (set.job, run.job, tool.jobs); off as delivered, and off refuses every job at its next run — Scheduled jobs
set.stored.access show, or turn on and off, whether the kept copy of the account password signs in any sd-solo <command>; off as delivered, when it signs in only scheduled jobs (run.job) and MCP calls (mcp.call) — Account types
tool.gates all six gates on one page (sh, os, net, ai, file transfer and scheduled jobs), and the page that changes them (any session sees it; Enter changes a gate after admin) — Operating system access
tool.sessions who is signed on, what is locked, and logout, unlock and inhibit.login on one screen — Task locks and the sessions screen
listu, logout all Sessions and locks
list.readu Sessions and locks
list.locks, lock, clear.locks, unlock Task locks and the sessions screen
anything on the deny list the list is set at installation (the control file's deny-verbs=, with or without managed mode) and changed only by a session signed in with the global password — Managed mode

Refused without admin, with The VOC can only be changed after admin: editing the VOC directly — ed voc, a program's write or delete to the VOC, copy into it — and saving or deleting a sentence with .s and .d. What SD writes to the VOC as a side effect of an ordinary command — create.file's entry, the command stack — is not gated.

Refused even with admin: changing the global catalog (catalog ... global, delete.catalog of a global entry, a write to global.bp.out), and the commands that are the SD Core for Linux server's — see Managed mode.

logout on its own needs nothing — it ends your own session, like quit — and nor does logout n, because every session on a Solo computer runs as sduser, or sd-solo -k, because it is a switch on the program, not a command in a session. sh needs no admin, but it needs its switch: it is refused (is not permitted to use the operating system shell) until the administrator has turned sh on with set.os.access; see Operating system access. Nor does set.password for your own account password — it asks for the current one instead; see The account and its passwords.

The maintenance verbs#

config#

config                     report every setting
config lptr                the same, to the default printer
config param value         set one, for this session only
config gpl                 display the license
config contrib             display the contributors

config param value sets a private, session-local value, not the installation's. The installation's settings live in sd.conf and are read when SD starts — see Configuration. This form overrides one for the session you are in: the right tool for trying a value, the wrong one for changing the installation.

New parameter value required config numlocks with nothing after it. The report form is config alone
Not a recognized private configuration parameter name the name cannot be set per session
Invalid value for this parameter it can, and the value is wrong

set.date#

set.date date

Sets the date SD reports in this session, not the computer's clock. SD keeps an offset from the real date for the session; date() and timedate() return the new date until the session ends. Other sessions and Windows are not affected. The argument goes through SD's D conversion, so anything iconv(…, 'D') accepts will do:

Date required nothing after set.date
Invalid date format the argument is not a date SD can read

It is for testing date-dependent code without touching the clock.

clean.account#

:clean.account
Cleaned $COMO
Cleaned $hold
Cleaned $savedlists

Empties the account's captured transcripts ($COMO), its hold file of reports ($hold) and its saved select lists ($savedlists). Nothing else is touched — no data file, no program, no dictionary. A como capture that is running is left alone and says so.

update.accounts#

update.accounts {all}

Copies SD's shipped command definitions into your VOC, adding what is missing and leaving your own VOC records alone. An upgrade runs it for you, so you will not normally type it. With one account, all and no keyword do the same thing.

It takes away only what is on SD's deletion list. When a release stops shipping a VOC record (a verb or keyword that was withdrawn), the record is on the list in sdsys\voc_removed, and the update removes it from your VOC only if it is still exactly the record SD shipped, after saving a copy in voc_removed.saved in the system folder, and writes an audit line. A record you changed, or one of your own of the same name, is kept. A record you removed stays removed. To keep your own version of one of SD's records, put [locked] in field 1 after the type code — V[locked], PA[locked] — and it is left alone. A verb is updated anyway, because a locked verb would go on naming a program this release replaced; you are told which ones.

list.voc.removed {sduser}
restore.voc sduser {id}

After admin. list.voc.removed lists the records SD no longer ships, with what to type instead; given the account, it says what the next update.accounts would do there, and changes nothing. restore.voc puts back the newest saved copy of a removed record (or of all of them), never over a record the account holds, and audits what it puts back. The next update.accounts removes a restored record again, because the list has the last word, so give a record you want to keep a name SD does not ship.

If the VOC cannot be written, the update says so for the account and leaves it as it was, instead of stopping with an error.

Your own changes to the VOC: newvoc.mods. An optional directory file called newvoc.mods in the SD system folder (sdsys in the SD Core Solo folder) holds VOC records of your own — a verb withdrawn, a Q-pointer to a shared file, a paragraph the account should have. Each record in it is written to the account's VOC after the standard records, so it has the last word, except over a record marked [locked]. The file is a directory file: one record per file, the record id as the file name, the VOC record as its contents. There is no file until you make one, and nothing is created for you. It is applied when the VOC is built at install and at every update.accounts, which an upgrade runs, and an upgrade leaves the file where it is. An uninstall that keeps your data keeps it too, with the saved copies of removed VOC records (voc_removed.saved), beside the .sdcore-kept stamp (see Upgrading and uninstalling); a new install that reloads the saved data puts the file back before it refreshes the VOC, so your records are applied again at once. To see it work, put a record in the file and run update.accounts; then ct voc the id.

append.sd.path#

append.sd.path             report whether SD is on your PATH
append.sd.path on          put %USERPROFILE%\SDCoreSolo\usr\bin on it
append.sd.path off         take it off

It changes your own PATH, not the computer's, and needs no elevation. The installer puts SD on your PATH every time it runs, so off lasts until the next install or upgrade. A window already open keeps the PATH it started with.

Backing up and restoring#

backup.account, restore.account, set.backup.directory, tool.backups and settings.report are on Backing up and restoring the account.

The home screen's settings#

set.start.default {menu | terminal}
set.tile sduser tile {on | off}
set.tile
set.pins {on | off}
tool.menus

The delivered start is the home screen. A session on a terminal opens it (tiles for the editor, the IDE, a terminal, the keyboard test, and Sign out, and the development tiles), and the command prompt is what is left when it returns. set.start.default terminal makes the prompt the start, set.start.default menu the home screen again, and without a word the verb says what it is now. It is read when a session starts. A piped session, a window under 140 by 43, a phantom and an API server are never given the screen. After an upgrade, if you want the old start, type admin and then set.start.default terminal. Starting in the menu confines nobody: the Terminal tile is there unless you turn it off.

set.tile sduser tile off takes a tile off the page, and on puts it back (every tile is on as delivered; the ids are editor, ide, terminal, keys and signout, the seven development tiles files, voc, dict, query, bulk, catalog and test, and recent, which is not a tile but the Recent group). set.tile alone says what is off. Sign out cannot be turned off. With Terminal off and a start in the home screen, the account is never given the prompt: when the screen ends it signs the person out. That is a wall only for the prompt the screen gives; the editor and IDE tiles run the account's own programs, so keep the account to the screen by turning those off as well, and a shell still needs set.os.access sh on.

set.pins on lets the account add programs of its own to its home screen (a group My programs and the my.menu verb); the permission is off as delivered, set.pins off takes it back (the person's list stays in their file), and without a word the verb says which it is. A program of the account's own runs the command the person could type at the prompt, so it adds no access: the switches and the gates apply as they do there.

set.recovery {on | off}

set.recovery on has the IDE keep a recovery copy of text you have not saved, readable only by you, in AppData\Local\.local\state\sd\recovery\sduser of your Windows profile (the profile Windows records for your user, never the USERPROFILE or LOCALAPPDATA variable), and offer it back when the record is opened again after a lost session (SD TCL - Programs and the Catalog describes it). The record itself is not changed until you save. The copies are outside the account, so backup.account never contains them. It is off as delivered; set.recovery off stops new copies (the ones that exist are kept until answered), and without a word the verb says which it is. It takes effect at once.

tool.menus is the same settings as a page: the Accounts box and the Menu box (where the account starts, whether it may add its own programs, and a line for each tile), with a [?] on each row (F1, ? or a click) that explains it. It writes nothing itself: Enter on a row shows the command it would run (set.tile sduser editor off) with its effect in a box answered Run or Cancel (Cancel is what Enter chooses), and the line under the page is the verb's own answer. A change reaches the person at their next sign-on, or F5 in the home screen. The three verbs write the audit trail, in lower case; the page only runs them. The tile ids and the person's side are in SD TCL - The Home Screen in the User documentation.

Not here#

There are no create.account, delete.account, modify.account, grant, revoke or list.grants — see Not in SD Core Solo for Windows.