Skip to content

v0.3.1

Choose a tag to compare

@lenitain lenitain released this 04 Nov 05:50
· 4 commits to main since this release

[0.3.1] - 2026-11-04

Added

  • src/shims.ts: su stand-in. su -c COMMAND [USER] (also -cCOMMAND,
    --command COMMAND, --command=COMMAND) becomes
    pkexec --keep-cwd --user USER sh -c COMMAND, because a non-login su keeps
    the working directory and runs its command through a shell. Every other form
    is refused with status 64 and one line naming the alternative: su,
    su -, su -l (login shell → pkexec bash), -m/-p/-w (pkexec
    sanitizes the environment), -s (name the shell in the command), -g/-G
    (pkexec cannot switch groups), --pty (no terminal), -f and
    --session-command.
  • README scope statement: the plugin covers elevation → polkit only; ssh,
    gpg/pinentry, keyrings, database clients, kinit and disk encryption are
    explicitly out of scope and need an askpass helper or a PTY.

Changed

  • README authorisation note: a desktop agent may reuse the password it already
    holds, so a second command can run without a dialog; that cache belongs to
    the agent and must not be relied on. su -c … USER authenticates an
    administrator rather than USER, and runs the command with sh -c.