Identities, permissions and object security
Accounts, database modes, GRANT/DENY/REVOKE rules and session invalidation.
Permission resolution
Authorization combines the database mode with explicit object rules. DENY takes precedence over broad grants; REVOKE removes an explicit rule while leaving other authorization sources in effect. Rules attach to catalog object identity. Dropping and recreating an object under the same name therefore produces a distinct authorization target.
Create and edit an account
Only admin administers the server. In Studio Administration → users, create an account with a 10..256-character password and database grants. Login names contain 1..64 characters, start with an ASCII letter and then allow letters, digits, _, . and -. The admin name is reserved. Disabling an account or changing its rights invalidates affected sessions and cancels active queries.
Database-wide modes
| Mode | Scope |
|---|---|
| read | Database object reads; object DENY rules can restrict them. |
| read_write | Reads and INSERT/UPDATE/DELETE, without general table creation/deletion. |
| dbo | Database object management, DDL and procedure execution; not server admin. |
| No database mode | Explicit object GRANT rules can enable narrowly scoped access. |
Ordinary accounts cannot access system. Modes do not grant server-level key management, user administration or admin-only operations.
Grant, deny and remove a rule
Run these as admin in the target database after creating lecteur_app and the objects. SELECT/INSERT/UPDATE/DELETE apply to tables; views accept SELECT only and procedures EXECUTE only. DENY overrides a broad grant. REVOKE removes the explicit rule; it is not a denial if the database mode still grants access. Rules target object identities, not just names; recreating an object does not retain its previous GRANT rules.
GRANT SELECT ON OBJECT::dbo.Ventes TO lecteur_app;
DENY UPDATE, DELETE ON dbo.Ventes TO lecteur_app;
REVOKE SELECT ON dbo.Ventes FROM lecteur_app;Sessions and admin reset
HTTP login creates a 12-hour cookie session, without automatic renewal guarantees. Sessions can be invalidated sooner. To reset admin, stop Core, provide OCTAVIIUS_ADMIN_PASSWORD and start once with --reset-admin-password using the same --data. Merely adding --admin-password to existing storage is not a reset. Remove the reset option and secret afterward; do not accidentally create different storage.