Privilege split 8/11: The Kurgan's logon task runs without admin rights
- setup.ps1: the elevated part removes the old tasks ("TT LCD Dashboard" and
the elevated "The Kurgan"); back in the unelevated part, setup registers
"The Kurgan" as the user with RunLevel Limited and starts it. Registered
as the user, the tray's "Start with Windows" can change it without admin
rights (checked on this machine with a throwaway task). Running setup.ps1
from an elevated window is refused, since the task must be registered
unelevated. The hardware service's install follows in stage 9.
- kurgan/tray.py: texts for an unelevated task; a failed toggle suggests
re-running setup.ps1 (for a task an older setup registered elevated).
- README: the task is unelevated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e583e25346
commit
a7ebf42838
3 files changed
+58
-45
No files matched your search
@@ -27,7 +27,7 @@ This does the following:
|
||||
|
||||
- Installs the Python packages into the project's `.venv` (or for the current user).
|
||||
- Installs [PawnIO](https://pawnio.eu). PawnIO is the signed driver LibreHardwareMonitor and FanControl also use. It reads the Intel CPU sensors and drives the motherboard fan headers and the RAM lighting.
|
||||
- Replaces the old **TT LCD Dashboard** task with a **The Kurgan** scheduled task. The task runs `pythonw -m kurgan` hidden, with admin rights, at every logon.
|
||||
- Replaces the old **TT LCD Dashboard** task (and an older, elevated **The Kurgan** task) with a **The Kurgan** scheduled task, registered as you. The task runs `pythonw -m kurgan` hidden, without admin rights, at every logon. Run `setup.ps1` from a normal PowerShell window; it asks for admin rights itself.
|
||||
|
||||
`-RetireAIServices` stops and disables the **Strata Local Service** and **Qwen4 Local Service**
|
||||
tasks, so The Kurgan can run whichever server you select. Without that switch, The Kurgan finds
|
||||
@@ -364,7 +364,7 @@ Stop-ScheduledTask "The Kurgan" # only one copy ru
|
||||
.\.venv\Scripts\python.exe -m kurgan --preview x.png # render one LCD frame from live sensors
|
||||
$env:KURGAN_DATA_DIR = "$env:TEMP\kurgan-demo"
|
||||
.\.venv\Scripts\python.exe -m kurgan --demo --port 18080 # simulated hardware; separate settings
|
||||
Start-ScheduledTask "The Kurgan" # back to the hidden, elevated copy
|
||||
Start-ScheduledTask "The Kurgan" # back to the hidden copy
|
||||
```
|
||||
|
||||
In demo mode the LLM servers use ports 18082 and 18083, but they are real servers.
|
||||
|
||||
Reference in new issue
Block a user