You already know MultiValue. This set does not teach it.
SD Core for Linux is built from upstream sdb64, a MultiValue database
with elements found in the main SD version and in ScarletDME. ScarletDME was
a fork of the original GPL release of OpenQM 2.6.6.
That lineage matters when you go looking for documentation. Not all the features of the commercial OpenQM 2.6.6 were in the GPL release, and no documentation specific to the GPL version was ever released. So even the OpenQM documents are not authoritative here.
The OpenQM 2.6.6 documents can be used as a reference, but SD Core has additions, changes and deletions — of features, of structure, of security and of commands. These pages cover those changes.
If you have used OpenQM, or upstream sdb64, much of SD Core will still be
familiar: the same data model, the same query processor, the same BASIC. If you
are bringing programs over from another MultiValue database, start with
Migrating to SD.
SD Core for Windows is a separate product, built independently — see SD Core for Windows. The two behave alike — what a verb does, what it refuses and why, its messages — while the mechanism underneath differs where the operating system does. Where this set says something differs from SD Core for Windows, that is usually why.
What "used to" means in these pages#
These pages describe changes, so used to, no longer and now
run all through them. The comparison is against the code this version was
made from — upstream sdb64, and ScarletDME and OpenQM 2.6.6 behind it.
Some of the changes are Linux-only and have no upstream original to differ from. What changed since an earlier release of SD Core for Linux is in the Changes document that comes with the release, not in these pages.
The pages#
The pages are numbered. Read them in numerical order the first time; after that they stand alone.
A number with a letter after it continues the page before it, split so
that no page runs longer than a reader will scroll: 01a continues 01, and
so on.
| 00 | Start here | this page — what the set is and what it leaves out |
| 00a | Copyright and license | The copyright and the license for this set, in full and in one place |
| 01 | Installing SD Core for Linux | What the installer does, and the choices it offers |
| 01a | Upgrading and uninstalling | Installing a new release over an existing one, and taking SD off the machine |
| 02 | Your first thirty minutes | Start here if you just want it working — install to a second user signing in, in eight steps |
| 03 | Running SD | The daemon, starting and stopping, and recovering from an unclean shutdown |
| 04 | Scheduled jobs | Running an SD command on a timer, and the permit list that decides which ones |
| 05 | Accounts | Ordinary accounts, SDSYS, Suspended and Group — what each one may do, and how to make one |
| 05a | Managing accounts | Group accounts, sharing one, changing an account afterwards, and deleting it |
| 06 | Administrator commands | The verbs only SDSYS has, and how to use them |
| 07 | Development and file commands | Compiling, editing, and the verbs that maintain files, indexes and records in bulk |
| 08 | ssh access | How people reach SD on this machine over ssh |
| 09 | API access | The client API, its port, and the SCRAM login |
| 10 | Client distribution | Which library an application needs, and the one file no installer can update |
| 11 | Lower case | Case in commands, file names, record ids and account names |
| 12 | Security | The identity model, and what protects the database |
| 12a | Security and the operating system | Reaching the machine from inside SD, how privileged work is done, and the audit trail |
| 13 | Other hardening | The global catalog, the pcode library, scheduled jobs, the logs, line endings, the terminal, and running SD |
| 14 | Not in SD Core for Linux | What has been removed, and what to use instead |
| 15 | Migrating to SD | Bringing programs and queries from another MultiValue database: where the compatibility words are set, and the words SD does not accept |
| 15a | Option words | The words of the option command, one line each |
| 15b | Mode words | The names $mode accepts and the lines of a $basic.options record, one line each |
The five things most likely to surprise you#
1. Signing in asks for no SD password. Linux has already authenticated
you — at the console, or over ssh with your own key or password. sd puts
you in the SD account with your own Linux user name; if there is no such
account, or you are not in the sdusers group, you are refused.
Administration is gated on being logged in to the machine, locally, as
the sdsys Linux user, at its own password — not on being a Linux
administrator, sudo or not, and not on a secret SD holds. See
Security.
2. A new account has no ssh, no API, no shell and no OS.EXECUTE, and
cannot save a change to a VOC, a program file or a dictionary, until SDSYS
gives them. SD is delivered with the tighter setting, and the
administrator loosens it one account and one switch at a time: ssh,
api, both, sh-on, os-on, voc-on, bp-on and dict-on, at
create.account or later with modify.account. SDSYS's two remote doors are shut as delivered: ssh
(remote.sdsys ssh on) and the API from chosen addresses (remote.sdsys api on address). Administration is
a real login at this machine's own keyboard, a desktop-sharing view of it, or, once the administrator has
opened a door, ssh or an API client with SDSYS's password; with a door open, nothing but that password stands
between the allowed computers and the administrator. See
ssh access and API access.
3. An ordinary account is not denied the console, and that is not a
gap. SD's switches govern what a session inside SD can reach; a local
login is the person as that Linux user on the machine, with their own
password and permissions, and SD does not stand between the two. An ssh
session is different: it is forced into SD, and reaches a shell only if the
account has sh-on. See Security and the operating
system.
4. Every account gets the same VOC. There is no reduced starting set —
there is no account-tier model at all. What an account cannot do is
administer: that is SDSYS alone, and SDSYS is not something
create.account can produce. See Accounts.
5. Commands and names are lower case now, completely. Everything that
can be lower case is — names on disk, VOC entries, program and include
names, and the files create.file makes — with upper-case input converted
on the fly, so no command, file or record id can exist in two casings. See
Lower case.
And one that carries over unchanged: the API login is SCRAM, and the old cleartext one is gone. Clients built against the old protocol will not connect.
What this release is#
LC2.0-0. Linux only, and English only. SD Core for Windows is a separate project and this is not a build of it.
It is a hobby project with no release schedule.
This set is the delta. It covers installing SD Core for Linux, running it, and what differs from OpenQM and from SD Core for Windows. The reference for the language and the command processor is a separate set, and so is the administrator's.
Where the source is#
Both repositories are public, and everything in them is open source. SD is
GPL software — config gpl at an sd prompt displays the license, and the
installed tree carries it as a file.
| The server, the client libraries and the installer | https://github.com/dmontaine/SDCore4Linux |
| These pages | https://github.com/dmontaine/SDCore4LinuxDocs |
Neither repository contains a built binary, deliberately — no compiled
executable, no .so, no object files. A clone builds. That is why installing
means building, and why there is no download of a compiled artifact in the
repository itself.
The documentation repository holds the Markdown only; the HTML and PDF you are reading are generated from it and are not stored there.
Reporting what you find#
Open an issue on the server repository — https://github.com/dmontaine/SDCore4Linux/issues — for anything about SD itself, and on the documentation repository for an error in these pages. If you are not sure which, the server one is the right guess.
Issues rather than pull requests. Both repositories are readable by anyone and writable only by the author, so a change cannot be merged from outside; a clear issue is worth more than a patch nobody can apply. A patch attached to an issue is welcome, it just travels that way.
The two things worth reporting in most detail are anything that behaves differently from OpenQM and is not described here, and anything in these pages that turns out not to be true of the build you are running. The second is as valuable as the first.
Quote the version as LC2.0-0 — the string in the header bar of every
page here, in the sign-on banner, and in what sd --version reports. The bare 2.0-0 is the same
release; the L says it is the Linux one, and that is the part worth
keeping in a report.