SD Core for Linux LC2.0-0

Moving an Account: the Linux User and the Cases

What does not come across, what a restore does to the Linux user and groups, and the cases where the two machines differ.

This page continues Moving an Account.

What does not come across#

backup.account all takes every registered account but SDSYS, so the shared account is in it. Restoring shared is not covered by anything said here: the restore gives a group account's files to its register group, sdg_shared, while the installer gives that directory to sdusers (see The Shared Account), so check the group of its files after a restore. When you move only some accounts, name them.

The Linux user and groups#

An account that already exists keeps its Linux user, its password and its groups. Only its files, its description and its suspension change.

A user account SD has to create is made the way create.account makes one:

A group account is made with its Linux group sdg_name, owned by sdsys. Its members: are Linux user names, and each must be a user of the new machine. One that is not is named and the rest go on: nosuchuser could not be added to group sdg_work (status 2). Add it with modify.account once it is an SD user.

When the machines differ#

Linux user jack already exists. SD accounts create their own Linux user jack was not restored.

Rename or remove that Linux user with the operating system's tools, then run the restore again. There is no way to restore under another account name. A word such as as is read as an account name: as is not in this backup. * A Windows backup. The archive format is shared with SD Core for Windows, and the restore accepts a full backup of it by the same manifest rules as a Linux one (a backup from SD Core Solo for Windows or SD Core Solo for Linux, or a different format, is refused). It reads the Windows paths in the account's VOC pointers, both separators and without regard to case, and rewrites those that lead into the account to the new place. A pointer whose file is not in the backup under that exact spelling is reported (… points at …, which does not exist here with that exact spelling.), and a pointer that leads outside the account is left as it was (… points outside the account (…) and was left unchanged.).

When it refuses#

It says Why
The archive does not match its manifest: jack (manifest 99/45332/6, unpacked 10/45332/6). Nothing was restored. the zip was changed or damaged
… has manifest format 2, and this version reads format 1. Nothing was restored. a newer zip format
This backup is from linux-solo and this system is linux-full. … the wrong product
nosuch is not in this backup. the name is not in the manifest
Making the archive … failed (status 2): sd-elevate: REFUSED … an account outside the accounts folders
1 other session(s) are logged in. Every other session must log out first: log them out and run it again
… already exists, left by an earlier restore that did not finish. remove that .sdrestore.n folder

None of these changed an account, and the restore leaves no .sdrestore.n folder behind (except in the last row, where it is the folder that is the cause). The source also refuses a zip with an entry outside manifest.txt and accounts/, a .. or absolute path, a backslash, or a symbolic link.

See also#

Backing Up and Restoring Accounts for the verbs and set.backup.directory; Accounts and Security for the switches; Data at Rest for backups and encryption.