This page continues Accounts and Security: The Other Keywords.
What the home screen shows: set.tile, pins-on and the menu management page#
tool.menus
Menu management is a full-screen page for the administrator (SDSYS's VOC only;
it is also a tile on the administrator's own home screen). It lists every account
but SDSYS with where it starts, whether it may add its own programs, and the tiles
turned off for it; for the account you select it shows the standard tiles (the seven of the
account, the seven development tiles and the Recent group: 15 rows after the two settings
above them) with [x]
on and [ ] off, and a box that says in plain words what the settings mean. It
writes nothing itself: every change is the command it will run, shown with its
effect in a box you answer Run or Cancel (Cancel is the button Enter chooses),
run by the same verbs you can type, and the line under the page is the verb's own
answer. Every setting has a [?] at the end of its row (and one on the accounts
list and on the system default): F1 or ? on the selected row, or a click on the
[?], opens a box that says what the setting means, ending with the name of the
administrator's guide PDF that says more (in the shared account's pdf directory), and a Close button. The text is the record of that setting in
the file context.help of the shared account.
set.tile says which tiles are off, one line for each account that has any
set.tile account tile off turn a tile off for that account
set.tile account tile on turn it on again
modify.account account pins-on the person may add their own programs to their home screen
modify.account account pins-off they may not (the delivered state)
- Tiles are on as delivered and are turned off one account at a time; there is
no setting for every account. The standard tile ids are
editor,ide,examples(Example programs, which runsload.examples),terminal,keys,switchandsignout, the seven development tiles (files,voc,dict,query,bulk,catalogandtest) andrecent, which is not a tile but the Recent group (below): 15 ids, the ones the page draws and the rows of the Menu box of the menu management page. Sign out cannot be turned off, and neither can the Back tile of a sub-menu page: a person must always be able to leave. Any other id is accepted and said not to be standard (it would apply to a tile of that name in a page of the account's own). recent: the Recent group. A group at the top of the home screen with the tiles the person started last, newest first, six at most. It is off as delivered, and it is the person's to turn on (the Recent group entry of the View menu of their home screen); it keeps its list in the person's own file&menus&, as the recordrecent, and writes nothing while it is off.set.tile account recent offis the administrator's wall: the group is then not on that account's page, nothing is read or written for it, and the View entry cannot be chosen; the list the person kept stays in their file, andset.tile account recent ongives the choice back (it does not turn the group on). The list holds tile ids and never a command: each recent tile is built from the page as it is, so a tile that is off for the account is not offered, and a record edited by hand cannot make the page start anything it does not already offer.- Sub-menus. The home screen can open a second page of tiles from a tile, with a Back
tile, Esc and the path on the status line (the User's guide, page 29a). The delivered page
declares none, so there is nothing for you to set; a tile of a page of your own that opens
one is declared in the page table of the
homeprogram, not in a file. - The setting is field 17 of the account's register record (tile ids separated by spaces). A tile that is off is not on the page, its menu entry cannot be chosen, and a group with no tile left has no heading. It takes effect when the home screen is next built (sign-on, F5, Switch account).
- The Terminal tile off is a wall for an account that starts in the home screen:
the screen never leaves the person at the command prompt, whatever ends it, and signs
them out instead (a window too small to take the screen ends the session after the
message). An account that starts at the prompt (
start-terminal) keeps it. It is a wall only for the prompt the screen gives: the programs behind the other tiles are the account's own, so an account that is to be kept to the screen should have the editor, IDE and record editor tiles off as well, and a command that gives a shell needssh-on, which is off as delivered. pins-onis off as delivered. An account that has it gets a group My programs on its home screen and the verbmy.menu, with which the person adds their own programs (a label and a command they could type at their prompt): they manage only their own list, never the standard tiles, and a program of theirs adds no access. It is field 18 of the register record, and the administrator always may.pins-offhides the group andmy.menurefuses; the list stays in the person's file.set.tilesaysTile ide is now off for fred(and... was already off ...; nothing changed) and is audited asset.tile off tile=ide account=fred;modify.accountsaysAccount fred may add its own programs to the home screen: yes.
Signing in over ssh with a key: ssh-key-on and ssh-key-off#
modify.account fred ssh-key-on
modify.account fred ssh-key-off
create.account user fred ssh ssh-key-on
A Windows user that create.account makes cannot sign in over ssh with a key, as delivered.
It signs in with its password, and only if the account's ssh route is on. ssh-key-on lets
that one account sign in with a key as well as with its password; ssh-key-off takes it
back; create.account user name ssh-key-on makes the account with it on. ssh-key-on does not give the ssh route: the account still needs ssh or
both. The gate matrix (tool.gates) has a column for it, turning it ON there asks you to
type the account's name, and each account's own gate page shows its state, as own for a user
SD did not make. After the word SD says Account fred may sign in over ssh with a key: yes (or
no). Only SDSYS may use the words. The word is audited as modify.account ssh-key-on account=fred, and the audit line of a
create.account that used it ends gates= with ssh-key-on among the words.
What opening it means for security. A key is a second way in that the account's password
does not control. Whoever holds the private key signs in without the password, SD cannot see
who holds a copy, and changing or removing the password does not close it: the key stays valid until it
is taken out of the person's authorized_keys file. Turn it on only for an account whose
keys you trust, and leave it off for everything else; leaving it off is the tighter choice.
How it is done. The installer makes a Windows group, sdsshnokey, empty, and adds to the
end of the ssh server's SD block two lines (the host name is the computer's, in lower case):
Match Group sdsshnokey,<host>\sdsshnokey User *,!sdsys,!<host>\sdsys,!sdradmin,!<host>\sdradmin
PubkeyAuthentication no
create.account puts each Windows user it makes in the group. ssh-key-on takes the user out
of the group and ssh-key-off puts it back. The two lines set PubkeyAuthentication no and
nothing else, so a member still signs in with its password and every other setting comes
from where it came before. It is the first Match block of the ssh server's file, with the
global settings above it, and the remote administration user (sdradmin) and SDSYS are
named out of it. The group is not sdsshonly: that group carries the rights that
deny the console and Remote Desktop, which no verb may lift.
Who it never affects. Only a Windows user that SD itself made. The user who ran the
installer, a Windows user attached to an account, SDSYS and every user outside SD keep
exactly the ssh settings they had, and modify.account refuses ssh-key-on and
ssh-key-off for them. The refusal (message 15170) reads name: its Windows user user was not
made by SD, so its ssh keys are its own and ssh-key-on and ssh-key-off do not apply to it;
nothing was changed. A group account or an other account has no Windows user and refuses
them too. The gate pages show a dash for them, and the holder's own page says own.
A backup and a restore. The backup's manifest carries ssh.key, 1 for an account whose
Windows user may sign in with a key. restore.account gives it back to an account it has to
make; a backup made without it restores with keys off, and ssh-key-on afterwards turns them
on (see Moving an Account).
What it does not do:
- An upgrade changes no existing account. Every
account that existed before keeps the key sign-in it had; only accounts made after the
upgrade start with keys off. To shut keys for an older account,
ssh-key-offputs it in the group. - It does not help on a machine whose own ssh server allows no password sign-in. There an
account SD makes cannot use ssh at all until
ssh-key-on. - It does not override a rule you wrote. A
Matchblock or setting of your own in the ssh server's configuration that is read before SD's block and setsPubkeyAuthentication yesfor the user wins: the first value the server finds is the one it uses. - A backup that holds no such setting restores with it off:
restore.accountputs the user in the group;ssh-key-onafterwards if it should have it. - The group must exist. It fails open: if
sdsshnokeyis missing or cannot be read, the ssh server offers keys according to the machine's own settings, andcreate.accountrefuses to make a user until the group is there (nothing is created; an account made withssh-key-on, or an attached user, is not put in the group and is not asked about it). SD will not delete the group; an installation without it needs the installer run again.
suspended/unsuspended is a state, not a tier#
Nothing about the account moves except the one field. No Windows
membership changes, no VOC changes — every account's VOC is the whole of
newvoc regardless of the field. Three doors refuse a suspended account:
signing in, logto, and the API. Suspending prints two lines, Account fred
is now suspended and Nothing on Windows has changed: fred keeps its Windows
account, its password and every group it belongs to, including any administrator
rights it had.
logto refuses it to the administrator too. logto into a suspended account is
refused for every session, SDSYS's included: Account fred is suspended, the session stays
where it was, and the audit trail says logto refused account=fred reason=suspended. The
administrator's maintenance of a suspended account does not need logto: run.in fred ...
(basic, catalog, decatalog, delete.catalog, debug, compile.dict) still works in
one, and modify.account fred unsuspended lifts the suspension.
add/delete is the grant#
:modify.account fred add pete
:modify.account fred delete pete
add and delete are the grant. There is no separate grant, revoke or
list.grants verb: modify.account replaces them. The grant is Windows
group membership and nothing is written to the account record. Every SD
account has a Windows group — sdu_name for a user account, sdg_name for
a group account — and entry to the account is membership of that group (the
test logto makes). add puts a Windows user into that group and
delete takes one out.
SD says added to group, removed from group, is already a member of group
or is not a member of (nothing changed), is not a member of sdusers, not
allowed (the person is not a Windows user SD knows; add only), SDRADMIN is the
remote administration account (add of sdradmin, which joins no group account), or
Unable to add user ... status: n when Windows refused the change.
To see who is in an account, read the Windows group: tool.accounts shows a
group account's members, and any account's group can be listed with net localgroup sdu_name
(sdg_name for a group account) or in Windows' own tools. The account's own
user is a member like any other.
A successful add or delete writes an audit record to SD's audit
trail (modify.account add account=nameto=user and modify.account delete
account=namefrom=user), stamped with the user and process that did it. The identity is
stamped by SD and is not passed in, so a caller cannot get it wrong or
forge it. Windows records the group change in its own security log as
well, and the two are independent records of the same act.
delete is deliberately unguarded: taking access away is always allowed.
A change reaches the person at their next sign-in to Windows, because
Windows fixes a person's groups when they sign in; a person you have just taken out keeps the account
until then.
Passwords: modify.password#
modify.password {account}
With no account name it changes your own, and asks for the current password first. With one, from SDSYS, it changes that account's — any account, including SDSYS's own — and does not ask for the old password: an administrator resetting a forgotten password does not know it.
Every account changes its own, elevated or not. The password store is open
to administrators only, so a session that was not started elevated asks the SD
service to make the change. The service changes one record only, the one of the
Windows user the session runs as (it is never told an account), and only after
the current password is proved; it writes the audit line
cred-own set account=name, or cred-own refused account=namemode=mreason=why, why being one word
made of the refusal, such as the-current-password-is-not-correct.
If the SD service is not running, modify.password says so and changes nothing.
This is the same result as SD Core for Linux, which uses a narrow helper for it.
The password is never an argument, and a trailing token is refused rather than ignored:
:modify.password fred hunter2
A password is never given on the command line; modify.password prompts for it
That refusal is the point of the verb's design. A verb that threw the extra word away without a word would look as if it had worked, while the password had already reached SD's command stack, and a shell's history and process list if the verb was reached from one. Refusing does not put it back, but it says so.
The prompts are hidden, and the account must already exist in the register. The rule is checked before the repeat is asked for, and there are up to three tries:
A password needs at least 8 characters, with a lower-case letter, an upper-case letter, a digit and a symbol.
New password:
ERROR: A password needs at least 8 characters, with a lower-case letter, an upper-case letter, a digit and a symbol.
That was attempt 1 of 3.
New password:
Repeat new password:
ERROR: Passwords do not match. That was attempt 2 of 3.
A password that does not meet the rule is refused at once and is not asked for
again; one that does is asked for a second time, and a difference between the two
says Passwords do not match. Each failure names which it was and says which
attempt it was; the third ends the command with ERROR: Password not changed.
and nothing is changed. An empty line at New password leaves the password as it
was. create.account user asks the same way, with the same three tries, saying the
rule first and asking Retype new password; its failure lines carry no ERROR:
prefix.
modify.password cannot be scripted, by design.
SDSYS's Windows sign-in password is a separate thing — set once, during installation, and changed afterward the ordinary Windows way, not with this verb.
Continued in#
Account Maintenance — clean.account, update.accounts, [locked], config, set.date and delete.account.