Repository navigation
v0.2.0
The files page: root's files in the browser, beside the terminal. For openccu-lite 2.0.0-beta.7 and newer, as
before.
- A file browser and an editor, in a tab of its own (Open files on the addon's page): a tree of the system's
folders beside an editor (Monaco) that colours shell scripts, JSON (with validation), INI and*.conf, systemd
units, XML, YAML, Tcl, Lua, Python, JavaScript, HTML, CSS, Markdown and Dockerfiles. On a phone the editor is a
plain text field. - Still no code of the addon runs as root, and its service opens no file of the system. The files go over the
SFTP part of an SSH sign-in to the system's own SSH server, with root's password, asked for that session. A
files session is a session like a terminal: the same sign-in sheet, the same limits (both kinds count against
the one limit), the same ends, the same bar - Shell (root), now with the kind of session beside it. - Every file opens read-only; Edit makes it writable. A new setting makes the files page read-only
altogether. - The read-only root file system is shown as such: outside the writable mounts folders carry a lock, and
Edit, New, Rename, Delete and Upload are switched off and say why. The addon never remounts anything. - A save keeps the file's mode, owner and group, its line ends, a missing last line end and a byte order
mark; it refuses when the file changed on the system since it was opened (Overwrite, Reload, Compare); it
writes a file beside the old one and renames it into place, or writes in place where that is impossible, and
says so. A full disk leaves the file as it was. - Every overwritten file is backed up first to
/usr/local/shell-backups, as root, closed to everyone else
and outside the system backup: the last 10 versions of each file, 50 MB in all, with Compare and Restore.
The backups stay when the addon is uninstalled. - Binary files as a hex view of their first 64 KiB; text up to 2 MB is edited, up to 10 MB shown, above that
downloaded. Devices, pipes and sockets are never opened. - Upload (64 MB a file, streamed; a replaced file is backed up first), download, new file and folder,
rename (never over something that exists), delete (a folder with something in it wants its name typed), mode
and owner of one entry. - The files page cannot be framed and loads its own scripts only, the editor's workers included. The session's
handle travels in a header, never in an address; a download goes through a ticket for that one download. - Audit lines for every change:
file-write,file-create,file-delete,file-rename,file-chmod,
file-chown,file-upload,file-download,file-restore- the path, never what a file holds. - The package grows from 3 MB to about 5 MB: the editor, which a browser loads when the first file is opened.
Not in it yet: a sign-in without root's password for systems that take keys only; downloading a folder; a search
through files.