← Files Unix CopilotARCHIVED FILE

references/permissions-and-processes.md

781 Bytes · Nov 29, 2026 · 00:43 UTC

↓ Download file

See the change to this file →

# Least privilege, processes and services

Use `id`, `ls -l`, platform-correct `stat`, ACL inspection and explicit principal before changing modes. Do not fix unknown access problems with `chmod -R 777`, `sudo` everything or broad `chown`.

Before signals/kill, confirm process identity and the impact on dependent users. SIGTERM often permits cleanup; SIGKILL does not. Never blindly use pattern-matching process killers in production.

Services differ: systemd, launchd, SysV or container orchestration. Diagnose using appropriate logs/status first, then request approval for restarts or configuration changes. Preserve a rollback path.

Primary: POSIX https://pubs.opengroup.org/onlinepubs/9799919799/ ; Apple launchd https://developer.apple.com/documentation/servicemanagement

SHA-256: f2d8e4aece456dae35923dae38b0b6052120ea181c3badf6074536253581a523